From a9a279d5fab1d24a4944efc0dd0cc154354e8b27 Mon Sep 17 00:00:00 2001 From: dmitrygribenchuk Date: Wed, 12 Jan 2022 18:58:36 +0200 Subject: [PATCH 1/2] fix print for Discord RPC threads fix print for Discord launching and updating RPC threads --- PC_Miner.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/PC_Miner.py b/PC_Miner.py index e26ae5e1..c2d7d795 100644 --- a/PC_Miner.py +++ b/PC_Miner.py @@ -804,8 +804,8 @@ def connect(): RPC.connect() Thread(target=Discord_rp.update).start() except Exception as e: - #print("Error launching Discord RPC thread: " + str(e)) - pass + pretty_print(get_string("Error launching Discord RPC thread:" + " " + str(e))) + def update(): while True: @@ -825,8 +825,7 @@ def update(): {"label": "Join the Discord", "url": "https://discord.gg/k48Ht5y"}]) except Exception as e: - #print("Error updating Discord RPC thread: " + str(e)) - pass + pretty_print(get_string("Error updating Discord RPC thread:" + " " + str(e))) sleep(15) From d4c3ea226bd7e520af037d5cb996452a33e1e448 Mon Sep 17 00:00:00 2001 From: Dmitry Gribenchuk Date: Wed, 12 Jan 2022 19:51:30 +0200 Subject: [PATCH 2/2] fix pretty print for Discord RPC --- PC_Miner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PC_Miner.py b/PC_Miner.py index c2d7d795..5481654a 100644 --- a/PC_Miner.py +++ b/PC_Miner.py @@ -804,7 +804,7 @@ def connect(): RPC.connect() Thread(target=Discord_rp.update).start() except Exception as e: - pretty_print(get_string("Error launching Discord RPC thread:" + " " + str(e))) + pretty_print(get_string("Error launching Discord RPC thread: " + str(e))) def update(): @@ -825,7 +825,7 @@ def update(): {"label": "Join the Discord", "url": "https://discord.gg/k48Ht5y"}]) except Exception as e: - pretty_print(get_string("Error updating Discord RPC thread:" + " " + str(e))) + pretty_print(get_string("Error updating Discord RPC thread: " + str(e))) sleep(15)