Skip to content
This repository has been archived by the owner on Oct 10, 2022. It is now read-only.

Commit

Permalink
Fix crash on get_phd2_state
Browse files Browse the repository at this point in the history
  • Loading branch information
GuLinux committed Nov 4, 2020
1 parent 4ee7d6d commit 00bf0ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/phd2/phd2_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ def stop_capture(self):
def get_phd2_state(self, publish=True):
state_reply = self.phd2_method('get_app_state')
#logger.debug('get_phd2_: state reply: {}'.format(state_reply))
self.__change_state(state_reply['result'], publish=publish)
if 'result' in state_reply:
self.__change_state(state_reply['result'], publish=publish)
return state_reply

def start_phd2(self, phd2_path, display):
Expand Down

0 comments on commit 00bf0ae

Please sign in to comment.