diff --git a/gax-java/gax/src/main/java/com/google/api/gax/core/GaxProperties.java b/gax-java/gax/src/main/java/com/google/api/gax/core/GaxProperties.java index 20d5ecc0dc..f15046afcb 100644 --- a/gax-java/gax/src/main/java/com/google/api/gax/core/GaxProperties.java +++ b/gax-java/gax/src/main/java/com/google/api/gax/core/GaxProperties.java @@ -36,7 +36,6 @@ import java.io.File; import java.io.IOException; import java.io.InputStream; -import java.net.URISyntaxException; import java.util.Optional; import java.util.Properties; import java.util.jar.Attributes; @@ -144,7 +143,7 @@ static Optional getBundleVersion(Class clazz) { Attributes attributes = jar.getManifest().getMainAttributes(); return Optional.ofNullable(attributes.getValue("Bundle-Version")); } - } catch (URISyntaxException | IOException e) { + } catch (Exception e) { // Unable to read Bundle-Version from manifest. Recover gracefully. return Optional.empty(); }