Skip to content

Commit

Permalink
Remove return from chadmin command (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillgarbar authored Aug 2, 2024
1 parent a96a86b commit 2124e28
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ch_tools/chadmin/cli/chadmin_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,11 @@ def wrapper(ctx, *a, **kw):
)

try:
result = cmd_callback(*a, **kw)
cmd_callback(*a, **kw)
logging.debug("Command '{}' completed", cmd.name)
except Exception:
logging.exception("Command '{}' failed with error:", cmd.name)

return result

cmd.callback = wrapper
super().add_command(
cmd,
Expand Down

0 comments on commit 2124e28

Please sign in to comment.