mirror of
https://github.com/Mercantec-GHC/h4-projekt-gruppe-0-sm.git
synced 2025-04-27 16:24:07 +02:00
also check for null
This commit is contained in:
parent
a4da460c53
commit
caf97efc0c
@ -17,7 +17,7 @@ def main():
|
|||||||
|
|
||||||
newest_commit_hash = os.popen("curl -s https://api.github.com/repos/Mercantec-GHC/h4-projekt-gruppe-0-sm/commits/main | jq -r .sha").read()
|
newest_commit_hash = os.popen("curl -s https://api.github.com/repos/Mercantec-GHC/h4-projekt-gruppe-0-sm/commits/main | jq -r .sha").read()
|
||||||
|
|
||||||
if not newest_commit_hash:
|
if not newest_commit_hash or newest_commit_hash == "null":
|
||||||
print("error: could not fetch commit hash", file=sys.stderr)
|
print("error: could not fetch commit hash", file=sys.stderr)
|
||||||
print(f"trying again in {ERROR_DELAY} seconds...", file=sys.stderr)
|
print(f"trying again in {ERROR_DELAY} seconds...", file=sys.stderr)
|
||||||
time.sleep(ERROR_DELAY)
|
time.sleep(ERROR_DELAY)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user