Skip to content

Commit

Permalink
Handle PermissionError in check_internet
Browse files Browse the repository at this point in the history
  • Loading branch information
PapayaJackal authored Feb 18, 2025
1 parent 0fa31cd commit 53ed279
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def check_internet() -> bool:
sock.settimeout(5)
sock.connect(('1.1.1.1', 53))
return True
except (TimeoutError, OSError):
except (TimeoutError, OSError, PermissionError):
return False


Expand Down

0 comments on commit 53ed279

Please sign in to comment.