Skip to content

Commit

Permalink
Adding check for non-empty resources before calling status. Fixes #196
Browse files Browse the repository at this point in the history
  • Loading branch information
yadudoc committed May 8, 2018
1 parent 07b80f7 commit 6b5c6b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libsubmit/libsubmit/providers/cluster_provider.py
Expand Up @@ -171,7 +171,8 @@ def status(self, job_ids):
- ExecutionProviderExceptions or its subclasses
'''
self._status()
if job_ids:
self._status()
return [self.resources[jid]['status'] for jid in job_ids]

def cancel(self, job_ids):
Expand Down

0 comments on commit 6b5c6b0

Please sign in to comment.