Update cmd_commit method signature to accept an optional args parameter.

This commit is contained in:
Aleksandr Bobrov 2024-05-24 14:57:42 +04:00
parent 311ae04314
commit 231fa46125
No known key found for this signature in database
GPG key ID: C8384B740B339A49

View file

@ -139,7 +139,7 @@ class Commands:
# any method called cmd_xxx becomes a command automatically.
# each one must take an args param.
def cmd_commit(self, args):
def cmd_commit(self, args=None):
"Commit edits to the repo made outside the chat (commit message optional)"
if not self.coder.repo: