mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Make download_godotsharp 522 proof.
This commit is contained in:
@@ -28,9 +28,14 @@ def main():
|
||||
# print(r.headers)
|
||||
|
||||
if not r.ok:
|
||||
print("ERROR: Bad status code from GodotSharp download!")
|
||||
print(r.status_code)
|
||||
exit(1)
|
||||
if os.path.exists(godotsharp_filename):
|
||||
print("WARNING: Builds server is down, using caches GodotSharp.dll!")
|
||||
print(r.status_code)
|
||||
exit(0)
|
||||
else:
|
||||
print("ERROR: Bad status code from GodotSharp download!")
|
||||
print(r.status_code)
|
||||
exit(1)
|
||||
|
||||
# Not modified!
|
||||
if r.status_code == 304:
|
||||
|
||||
Reference in New Issue
Block a user