Skip to content

Commit

Permalink
change requests exception ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
nickmoreton committed Jan 3, 2022
1 parent 10e4c17 commit 37fce62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wagtail_wordpress_import/block_builder_defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ def fetch_url(src, allow_redirects=True):
except requests.HTTPError:
print(f"HTTPError: {src}")
return None, False, None
except requests.RequestException:
print(f"RequestException: {src}")
return None, False, None
except requests.ReadTimeout:
print(f"ReadTimeout: {src}")
return None, False, None
Expand All @@ -62,6 +59,9 @@ def fetch_url(src, allow_redirects=True):
except requests.ConnectTimeout:
print(f"ConnectTimeout: {src}")
return None, False, None
except requests.RequestException:
print(f"RequestException: {src}")
return None, False, None


## FUNCTIONS FOR IMAGES
Expand Down

0 comments on commit 37fce62

Please sign in to comment.