Skip to content

Commit

Permalink
Fix RuntimeError message
Browse files Browse the repository at this point in the history
  • Loading branch information
milanmlft committed Dec 4, 2023
1 parent ee30a89 commit 806bc22
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cli/src/pixl_cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,12 @@ def _update_extract_rate(queue_name: str, rate: Optional[float]) -> None:
)

else:
msg = f"Failed to update rate on consumer for {queue_name}: {response}"
raise RuntimeError(msg)
runtime_error_msg = (
"Failed to update rate on consumer for %s: %s",
queue_name,
response,
)
raise RuntimeError(runtime_error_msg)


@cli.command()
Expand Down

0 comments on commit 806bc22

Please sign in to comment.