Skip to content

Commit

Permalink
Do not crash, if pypresence not exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Dummerle committed Dec 26, 2021
1 parent 4820719 commit 454671f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rare/components/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ def __init__(self):
self.resize(width, height)

if not shared.args.offline:
self.rpc = DiscordRPC()
try:
self.rpc = DiscordRPC()
except ModuleNotFoundError:
logger.warning("Discord RPC module not found")

self.timer = QTimer()
self.timer.timeout.connect(self.timer_finished)
Expand Down

0 comments on commit 454671f

Please sign in to comment.