mirror of
https://github.com/obskyr/khinsider.git
synced 2025-08-31 00:39:51 +02:00
@@ -178,7 +178,7 @@ def friendlyDownloadFile(file, path, name, index, total, verbose=False):
|
||||
print("Couldn't download {}. Trying again...".format(name))
|
||||
try:
|
||||
file.download(path)
|
||||
except requests.ConnectionError:
|
||||
except (requests.ConnectionError, requests.Timeout):
|
||||
pass
|
||||
else:
|
||||
break
|
||||
@@ -474,7 +474,7 @@ if __name__ == '__main__':
|
||||
print(soundtrack.id)
|
||||
except KeyboardInterrupt:
|
||||
print("Stopped download.")
|
||||
except requests.ConnectionError:
|
||||
except (requests.ConnectionError, requests.Timeout):
|
||||
print("Could not connect to KHInsider.")
|
||||
print("Make sure you have a working internet connection.")
|
||||
except Exception as e:
|
||||
|
Reference in New Issue
Block a user