Skip to content

Commit

Permalink
Catch all exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
rainbowdashlabs committed Jul 18, 2024
1 parent dd9f1e7 commit 21ff7af
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public CachingJSEngine(int cacheSize) {
for (String currentEngine : List.of("js", "JavaScript", "nashornjs", "nashorn")) {
try {
engine = registration.getProvider().getEngineByName(currentEngine);
} catch (RuntimeException e) {
} catch (Exception e) {
continue;
}
break;
Expand All @@ -76,7 +76,7 @@ public CachingJSEngine(int cacheSize) {
} catch (ScriptException ex) {
BigDoorsOpener.logger().log(Level.WARNING, "Could not start script engine. Custom evaluator will not work.", e);
}
} catch (RuntimeException e) {
} catch (Exception e) {
BigDoorsOpener.logger().log(Level.WARNING, "Could not start script engine. Custom evaluator will not work.", e);
}

Expand Down

0 comments on commit 21ff7af

Please sign in to comment.