Skip to content

Commit

Permalink
tweak change on HTML code test
Browse files Browse the repository at this point in the history
do not need to always make the test
  • Loading branch information
romjerome authored Apr 20, 2023
1 parent add09d9 commit 3e31785
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GeneanetForGramps.py
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,7 @@ def random_headers():
LOG.debug("How to handle HTML page on non linux environments?")
print(_("[Requests]: We failed to reach the server at"), purl)
LOG.info("Fallback, try via built-in urllib module")
if page.ok and page.status_code != "200":
if page.ok and page.status_code != "200" or "201":
try:
tree = html.fromstring(str(page.content))
LOG.info(str(page.content))
Expand Down

0 comments on commit 3e31785

Please sign in to comment.