Skip to content

Commit

Permalink
expand error
Browse files Browse the repository at this point in the history
  • Loading branch information
Franr committed Jun 29, 2024
1 parent 79bc496 commit 9f1f74b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions leverage/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,11 @@ def get_docker_client():
docker_client = DockerClient.from_env()
docker_client.ping()

except:
logger.error(
except Exception as exc:
logger.exception(
"Docker daemon doesn't seem to be responding. "
"Please check it is up and running correctly before re-running the command."
"Please check it is up and running correctly before re-running the command.",
exc_info=exc,
)
raise Exit(1)

Expand Down

0 comments on commit 9f1f74b

Please sign in to comment.