浏览代码

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 年之前
父节点
当前提交
175e9105f9
共有 1 个文件被更改,包括 1 次插入3 次删除
  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