Skip to content

Commit

Permalink
Merge pull request #232 from davispuh/pipe
Browse files Browse the repository at this point in the history
Fix `get_ipc_path()` when `pipe=0``
  • Loading branch information
qwertyquerty authored Mar 2, 2024
2 parents 31718fb + 454a12b commit 273d414
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 273d414

Please sign in to comment.