Pārlūkot izejas kodu

Remove unncessary check on exception

The check is broken and the exception message always contains the string
anyway, so it's a pointless check.
Nick Barrett 2 gadi atpakaļ
vecāks
revīzija
175e9105f9
1 mainītis faili ar 1 papildinājumiem un 3 dzēšanām
  1. 1 3
      mautrix_instagram/user.py

+ 1 - 3
mautrix_instagram/user.py

@@ -898,9 +898,7 @@ class User(DBUser, BaseUser):
             except (IGChallengeError, IGConsentRequiredError) as e:
                 await self._handle_checkpoint(e, on="reconnect")
                 return
-            except IGUnknownError as e:
-                if "non-JSON body" not in e:
-                    raise
+            except IGUnknownError:
                 errors += 1
                 if errors > 10:
                     raise