mirror of
https://github.com/ThioJoe/YT-Spammer-Purge.git
synced 2026-01-09 22:28:08 -05:00
files.py - Add additional OSError exception handling
I had failed to add handling for most OSError exceptions when manually checking for updates. This will handle the rest and print the error. Addresses #993
This commit is contained in:
@@ -76,6 +76,11 @@ def check_lists_update(spamListDict, silentCheck = False):
|
||||
if "WinError 10013" in str(ox):
|
||||
print(f"{B.RED}{F.WHITE}WinError 10013:{S.R} The OS blocked the connection to GitHub. Check your firewall settings.\n")
|
||||
return False
|
||||
else:
|
||||
print(str(ox))
|
||||
print(f"{B.RED}{F.WHITE}\n Unexpected OS Error {S.R} See error details above.\n")
|
||||
return False
|
||||
|
||||
except:
|
||||
if silentCheck == True:
|
||||
return spamListDict
|
||||
|
||||
Reference in New Issue
Block a user