Skip to content

Commit

Permalink
Fix error match check
Browse files Browse the repository at this point in the history
  • Loading branch information
BSchilperoort committed Jan 25, 2024
1 parent b67ca69 commit e0cc00e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_docker_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def docker_available():
docker.APIClient()
return True
except docker.errors.DockerException as err:
if "Error while fetching server API version" in err.value:
if "Error while fetching server API version" in str(err):
return False
else:
raise err # Unknown error.
Expand Down

0 comments on commit e0cc00e

Please sign in to comment.