Skip to content

Commit

Permalink
[modbus] Use RuntimeException (openhab#8007)
Browse files Browse the repository at this point in the history
Signed-off-by: Sami Salonen <[email protected]>
Signed-off-by: CSchlipp <[email protected]>
  • Loading branch information
ssalonen authored and CSchlipp committed Jul 26, 2020
1 parent 160e381 commit ba62869
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ public void registerRegularPoll(@NonNull PollTask task, long pollPeriodMillis, l
started);
try {
executeOperation(task, false, pollOperation);
} catch (Exception e) {
} catch (RuntimeException e) {
// We want to catch all unexpected exceptions since all unhandled exceptions make
// ScheduledExecutorService halt the polling. It is better to print out the exception, and try again
// (on next poll cycle)
Expand Down

0 comments on commit ba62869

Please sign in to comment.