Skip to content

Commit

Permalink
Merge pull request #231 from PapayaJackal/patch-1
Browse files Browse the repository at this point in the history
Handle PermissionError in check_internet
  • Loading branch information
GloriousEggroll authored Mar 5, 2025
2 parents 39dd0e3 + 53ed279 commit 103ebc5
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 103ebc5

Please sign in to comment.