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:
ThioJoe
2022-12-19 13:41:27 -07:00
parent 2aae168413
commit 71548dd66e

View File

@@ -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