Handle exceptions when retrieving pod pulse log

This commit is contained in:
Bart Sopers 2019-12-27 13:31:40 -05:00
parent 5cbb5c8baa
commit 6d377d7b6a

View file

@ -90,7 +90,14 @@ public class OmnipodUITask {
break;
case GetPodPulseLog:
returnDataObject = communicationManager.readPulseLog();
try {
returnDataObject = communicationManager.readPulseLog();
} catch(Exception ex) {
if(isLogEnabled()) {
LOG.warn("Failed to retrieve pulse log", ex);
}
returnDataObject = null;
}
break;
case GetPodStatus: