We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e44d21 commit ef9e518Copy full SHA for ef9e518
gax-java/gax/src/main/java/com/google/api/gax/core/GaxProperties.java
@@ -36,7 +36,6 @@
36
import java.io.File;
37
import java.io.IOException;
38
import java.io.InputStream;
39
-import java.net.URISyntaxException;
40
import java.util.Optional;
41
import java.util.Properties;
42
import java.util.jar.Attributes;
@@ -144,7 +143,7 @@ static Optional<String> getBundleVersion(Class<?> clazz) {
144
143
Attributes attributes = jar.getManifest().getMainAttributes();
145
return Optional.ofNullable(attributes.getValue("Bundle-Version"));
146
}
147
- } catch (URISyntaxException | IOException e) {
+ } catch (Exception e) {
148
// Unable to read Bundle-Version from manifest. Recover gracefully.
149
return Optional.empty();
150
0 commit comments