Merge pull request #463 from Pokechu22/broken-http_method-fallback

Fix broken http_method fallback
pull/464/head
nemobis 1 year ago committed by GitHub
commit 0621adf0a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -992,7 +992,7 @@ def getXMLRevisions(config={}, session=None, allpages=False, start=None):
if e.response.status_code == 405 and config['http_method'] == "POST":
print("POST request to the API failed, retrying with GET")
config['http_method'] = "GET"
exportrequest = site.api(http_method=config['http_method'], **exportparams)
prequest = site.api(http_method=config['http_method'], **exportparams)
except mwclient.errors.InvalidResponse:
logerror(
config=config,

Loading…
Cancel
Save