Skip to content

Commit

Permalink
fix(deadline): fix type assumption in configure_identity_registration…
Browse files Browse the repository at this point in the history
…_settings.py error handling (#612)
  • Loading branch information
jusiskin authored Oct 18, 2021
1 parent d2f6fd8 commit 7420f3c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def run_json(self, *args: Iterable[str]):

result = json.loads(self._call_deadline_command(transformed_args))

if 'ok' in result.keys():
if isinstance(result, dict) and 'ok' in result.keys():
if result['ok'] == False:
raise ValueError('DeadlineCommandError: \n%s' % (result))

Expand Down

0 comments on commit 7420f3c

Please sign in to comment.