Closed FrzMtrsprt closed 1 year ago
I think it works for now.
Great, then we can forget about upstream bugs
You might be better off catching our base exception PyPresenceException
to account for the current (and wrong) InvalidID being replaced with PipeClosed. There is no ETA on when the commit including PipeClosed will be pushed to pypi.
https://github.com/qwertyquerty/pypresence/blob/master/pypresence/exceptions.py
After restarting Discord, update will fail with an
InvalidID
exception. The traceback is as follows.This is clearly pypresence's bug (see #213), and we'll have to wait for pypresence to fix this.
Below is a temporary fix.
Then we run into the second bug:
RuntimeError: There is no current event loop in thread 'Thread-1 (_target)'.
It happened when
Presence
tries to renew the event loop inconnect()
, but fails to handle the exception when it can't find a existing one.This bug is fixed in #210, which has been waiting for approval for two weeks.