Don't fail if version.properties is unreadable

Fixes issue #42
pull/45/head
Richard Körber 2017-11-04 13:05:27 +01:00
parent 488c54fff0
commit ae96894c09
1 changed files with 1 additions and 1 deletions

View File

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