Skip to content

Commit

Permalink
empty message handling in git commands
Browse files Browse the repository at this point in the history
  • Loading branch information
guigoruiz1 committed Feb 2, 2025
1 parent 3da9515 commit dc8eeb7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion yugiquery/bot/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,11 @@ def github_cmd(cmd) -> str:
if not self.URLS.repo:
return "No github repository."
try:
return cmd(passphrase=passphrase, repo=self.repo)
result = cmd(passphrase=passphrase, repo=self.repo)
if result:
return result
else:
return "Success"
except Exception as e:
return str(e)

Expand Down

0 comments on commit dc8eeb7

Please sign in to comment.