From aac816e315ac39613a73ff0f0c5dc6ae3ac55b0f Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Sun, 7 May 2023 11:29:37 -0700 Subject: [PATCH] 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. --- dumpgenerator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dumpgenerator.py b/dumpgenerator.py index 07708c7..c5d1d80 100755 --- a/dumpgenerator.py +++ b/dumpgenerator.py @@ -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,