Skip to content

Commit

Permalink
Fix TypeError as a function has no instance
Browse files Browse the repository at this point in the history
  • Loading branch information
unode authored Aug 19, 2022
1 parent 7a33203 commit e3c6a7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmpy_bot/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __init__(
self.matcher = matcher
self.metadata = metadata

if not isinstance(function, click.command):
if not isinstance(function, click.Command):
self.function.callback = None
self.function.get_help = None
self.function.make_context = None
Expand Down

0 comments on commit e3c6a7e

Please sign in to comment.