From 504b74878950be44e6ee6d11dadf6742b904658f Mon Sep 17 00:00:00 2001 From: Profitroll Date: Tue, 1 Feb 2022 17:32:46 +0200 Subject: [PATCH] Updated to v2.6 Temporary fix for Python 3.10 RPC issue. (https://github.com/profitrollgame/AutoZoom/issues/1) --- rpc.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/rpc.py b/rpc.py index 1c81e8a..da6d0eb 100644 --- a/rpc.py +++ b/rpc.py @@ -13,7 +13,13 @@ from pypresence import Presence client_id = '800049969960058882' -RPC = Presence(client_id,pipe=0) +try: + RPC = Presence(client_id,pipe=0) +except Exception as exp: + appendLog(f'Discord RPC failed to initialize status due to {exp}') + if getConfig("debug"): + print(f'{RESET}Модуль {BRED}Discord RPC {RESET}не смог подключиться.\nВозможно, ваш {CYAN}Discord {RESET}не открыт.\nОшибка: {BRED}{exp}{RESET}') + time.sleep(1) connected = False