Fix broken http_method fallback

This was probably a copy/paste typo. I don't remember if I ever ran into this in practice but it is something I noticed in the past and never submitted a fix for.
pull/463/head
Pokechu22 1 year ago
parent e339927cc3
commit aac816e315

@ -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