Skip to content

Commit

Permalink
Fix ruff edge case errors over exception bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
ndevenish committed Sep 5, 2023
1 parent a8b0cc8 commit 37efda3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/zocalo/cli/configure_rabbitmq.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ def run():
except requests.exceptions.HTTPError as e:

@rich.console.group()
def _error_output():
def _error_output(e):
yield Text(str(e), style="bold red")
yield ""
yield f"The request: {e.request.url}"
Expand All @@ -492,7 +492,7 @@ def _error_output():
resp_text = JSON(e.response.text)
yield Padding(resp_text, (0, 0, 1, 4))

print(Panel(_error_output()))
print(Panel(_error_output(e)))
sys.exit(1)

print("Update completed.")
Expand Down

0 comments on commit 37efda3

Please sign in to comment.