Skip to content

Commit

Permalink
feat: let test_ipc_path throw the error.
Browse files Browse the repository at this point in the history
Signed-off-by: NikOverflow <[email protected]>
  • Loading branch information
NikOverflow committed Mar 2, 2024
1 parent c7009db commit f10fb9e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions pypresence/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,8 @@ def remove_none(d: dict):

def test_ipc_path(path):
'''Tests an IPC pipe to ensure that it actually works'''
try:
with open(path):
return True
except Exception:
return False

with open(path):
return True

# Returns on first IPC pipe matching Discord's
def get_ipc_path(pipe=None):
Expand Down

0 comments on commit f10fb9e

Please sign in to comment.