Skip to content

Commit

Permalink
Merge pull request #4016 from codalab/epicfaace-patch-9
Browse files Browse the repository at this point in the history
Fix issue where `container` is None
  • Loading branch information
mergify[bot] committed Feb 22, 2022
2 parents 623e812 + 3b32ae9 commit 9b3fe50
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions codalab/worker/docker_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,9 @@ def container_exists(container):
try:
client.containers.get(container.id)
return True
except AttributeError:
# container is None
return False
except docker.errors.NotFound:
return False

Expand Down

0 comments on commit 9b3fe50

Please sign in to comment.