Skip to content

Commit

Permalink
refactor: Make the CommandNotFound more idiomatic
Browse files Browse the repository at this point in the history
  • Loading branch information
Konubinix committed Feb 8, 2024
1 parent d60e6f2 commit 23ec64b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion clk/overloads.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@


class CommandNotFound(Exception):
pass

def __init__(self, cmd_name):
super().__init__(f"Command {cmd_name} not found")
self.cmd_name = cmd_name


def list_commands(parent_path):
Expand Down

0 comments on commit 23ec64b

Please sign in to comment.