mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-23 06:46:02 +00:00
fix(ci): handle empty commit lookup responses
This commit is contained in:
1 parent
51407155fc
commit
1355cb3a2b
2 files changed
+8
-1
No files matched your search
@@ -158,7 +158,7 @@ def sync(mode, repo, number, discord, sha="", apk="", release=""):
|
||||
"allowed_mentions": {"parse": []}, "flags": 4})
|
||||
return
|
||||
try:
|
||||
commit = github(f"repos/{repo}/commits/{sha}")
|
||||
commit = github(f"repos/{repo}/commits/{sha}") or {}
|
||||
except RuntimeError:
|
||||
commit = {}
|
||||
commit_message = (commit.get("commit") or {}).get("message", "")
|
||||
|
||||
Reference in new issue
Block a user