From 454a12b89773b03892faa923c90324f1c458eff3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C4=81vis=20Mos=C4=81ns?= Date: Sat, 30 Dec 2023 03:30:07 +0200 Subject: [PATCH] Fix get_ipc_path with pipe=0 --- pypresence/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pypresence/utils.py b/pypresence/utils.py index 31e00a8..9af1fc4 100644 --- a/pypresence/utils.py +++ b/pypresence/utils.py @@ -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'):