rpc.py: Fix bug from https://github.com/Dummerle/Rare/issues/45
This commit is contained in:
parent
14bd150e5f
commit
3ae41cab91
1 changed files with 4 additions and 0 deletions
|
@ -60,6 +60,10 @@ class DiscordRPC(QObject):
|
|||
logger.warning("Discord is not active\n" + str(e))
|
||||
self.RPC = None
|
||||
return
|
||||
except FileNotFoundError as e:
|
||||
logger.warning("File not found error\n" + str(e))
|
||||
self.RPC = None
|
||||
return
|
||||
self.update_rpc(app_name)
|
||||
|
||||
def update_rpc(self, app_name=None):
|
||||
|
|
Loading…
Reference in a new issue