Raise QueryReturnedNotFoundException if expected structure is missing

- QueryReturnedNotFoundException now inherits ConnectionException
  --> Retry on 404 errors + missing "window._sharedData"

Relates to #146 and #496.
This commit is contained in:
André Koch-Kramer committed 2020-01-27 13:06:42 +01:00
1 parent d3403bc686
commit 8764947d10
2 files changed
+9 -6

No files matched your search

+4 -4
View File
@@ -9,10 +9,6 @@ class QueryReturnedBadRequestException(InstaloaderException):
pass
class QueryReturnedNotFoundException(InstaloaderException):
pass
class QueryReturnedForbiddenException(InstaloaderException):
pass
@@ -62,5 +58,9 @@ class PostChangedException(InstaloaderException):
pass
class QueryReturnedNotFoundException(ConnectionException):
pass
class TooManyRequestsException(ConnectionException):
pass