Commit b2685444 authored by Daniel W Bond's avatar Daniel W Bond

wow we really had some kickass testing back in the day, didn't we... except...

wow we really had some kickass testing back in the day, didn't we... except block actually imports correct exception name
parent e2accd2f
......@@ -35,7 +35,7 @@ def ISBNMetadata(standardISBN):
# In case the API fails to return, simply return None.
try:
metadata = requests.get(url, timeout=3)
except ConnectionError:
except requests.ConnectionError:
return None
# format into a dictionary
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment