Fix bug blocking other methods from running
This commit is contained in:
parent
58ba2e9417
commit
fb50219788
@ -389,7 +389,11 @@ def extractStatus(url,workaroundTokens=None):
|
|||||||
methods=[extractStatus_syndication,extractStatusV2AnonLegacy,extractStatusV2AndroidLegacy,extractStatusV2Legacy]
|
methods=[extractStatus_syndication,extractStatusV2AnonLegacy,extractStatusV2AndroidLegacy,extractStatusV2Legacy]
|
||||||
for method in methods:
|
for method in methods:
|
||||||
try:
|
try:
|
||||||
return method(url,workaroundTokens)
|
result = method(url,workaroundTokens)
|
||||||
|
if 'errors' in result:
|
||||||
|
# try another method
|
||||||
|
continue
|
||||||
|
return result
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"{method.__name__} method failed: {str(e)} for {url}")
|
print(f"{method.__name__} method failed: {str(e)} for {url}")
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user