diff --git a/pori_python/ipr/connection.py b/pori_python/ipr/connection.py index 9e8c468..b267f06 100644 --- a/pori_python/ipr/connection.py +++ b/pori_python/ipr/connection.py @@ -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}' )