Skip to content

Commit

Permalink
Fix get_ipc_path with pipe=0
Browse files Browse the repository at this point in the history
  • Loading branch information
davispuh committed Dec 30, 2023
1 parent 31718fb commit 454a12b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pypresence/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def remove_none(d: dict):
# Returns on first IPC pipe matching Discord's
def get_ipc_path(pipe=None):
ipc = 'discord-ipc-'
if pipe:
if pipe is not None:
ipc = f"{ipc}{pipe}"

if sys.platform in ('linux', 'darwin'):
Expand Down

0 comments on commit 454a12b

Please sign in to comment.