Improve error handling

This commit is contained in:
2021-01-10 22:22:49 +01:00
parent 4bd7af39a8
commit 50ba1198c7
2 changed files with 8 additions and 4 deletions

View File

@@ -73,8 +73,8 @@ public class APIFootballConnector {
try {
APIFootballMatch match = new APIFootballMatch((JSONObject) matchArray.get(i), this.season);
matchesList.add(match);
} catch (NullPointerException e) {
logger.error("Could not create config for match: " + matchArray.get(i).toString());
} catch (Exception e) {
logger.error(e.getMessage());
}
}