Don't fail if version.properties is unreadable

Fixes issue #42
pull/55/head
Richard Körber 2017-11-04 13:05:27 +01:00
parent fda6ce1185
commit 529eb13e3f
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ public class HttpConnector {
Properties prop = new Properties();
prop.load(in);
agent.append('/').append(prop.getProperty("version"));
} catch (IOException ex) {
} catch (Exception ex) {
// Ignore, just don't use a version
LoggerFactory.getLogger(HttpConnector.class).warn("Could not read library version", ex);
}