Skip to content

Commit

Permalink
lint with black
Browse files Browse the repository at this point in the history
  • Loading branch information
elewis2 committed Jul 9, 2024
1 parent 2ab0cb4 commit 0e0aa5c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pori_python/ipr/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,13 @@ def check_status(interval: int = 5, num_attempts: int = 5):
logger.info(f'checking report loading status in {interval} seconds')
time.sleep(interval)
current_status = self.get(f'reports-async/{report_id}')
if current_status['state'] not in ['active', 'ready', 'waiting', 'completed', 'failed']:
if current_status['state'] not in [
'active',
'ready',
'waiting',
'completed',
'failed',
]:
raise Exception(
f'async report upload in unexpected state: {current_status}'
)
Expand Down

0 comments on commit 0e0aa5c

Please sign in to comment.