Skip to content

Commit

Permalink
'Refactored by Sourcery'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sourcery AI committed Sep 8, 2023
1 parent e0da2e2 commit 0005550
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wikiteam3/dumpgenerator/dump/xmldump/xml_header.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def getXMLHeader(config: Config, session: requests.Session) -> Tuple[str, Config
f"{config.api}?action=query&export=1&exportnowrap=1&titles={randomtitle}",
timeout=10,
)
xml = str(r.text)
xml = r.text
# Again try without exportnowrap
if not re.match(r"\s*<mediawiki", xml):
r = session.get(
Expand Down

0 comments on commit 0005550

Please sign in to comment.