Sfoglia il codice sorgente

Put back UNKNOWN_ERROR for unexpected listen errors

Nick Barrett 2 anni fa
parent
commit
5067e15e21
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      mautrix_instagram/user.py

+ 1 - 1
mautrix_instagram/user.py

@@ -967,7 +967,7 @@ class User(DBUser, BaseUser):
             self.log.exception("Fatal error in listener, reconnecting in 5 minutes")
             await self.send_bridge_notice(
                 "Fatal error in listener (see logs for more info)",
-                state_event=BridgeStateEvent.TRANSIENT_DISCONNECT,
+                state_event=BridgeStateEvent.UNKNOWN_ERROR,
                 important=True,
                 error_code="ig-unknown-connection-error",
                 info={"python_error": str(e)},