Browse Source

Push unknown error if try_sync fails

Tulir Asokan 3 years ago
parent
commit
6d1dc890c7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      mautrix_instagram/user.py

+ 1 - 0
mautrix_instagram/user.py

@@ -236,6 +236,7 @@ class User(DBUser, BaseUser):
             await self.sync()
         except Exception:
             self.log.exception("Exception while syncing")
+            await self.push_bridge_state(BridgeStateEvent.UNKNOWN_ERROR)
 
     async def get_direct_chats(self) -> Dict[UserID, List[RoomID]]:
         return {