Handle exceptions when retrieving pod pulse log
This commit is contained in:
parent
5cbb5c8baa
commit
6d377d7b6a
1 changed files with 8 additions and 1 deletions
|
@ -90,7 +90,14 @@ public class OmnipodUITask {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case GetPodPulseLog:
|
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;
|
break;
|
||||||
|
|
||||||
case GetPodStatus:
|
case GetPodStatus:
|
||||||
|
|
Loading…
Reference in a new issue