Catch and ignore more catalog exceptions

This commit is contained in:
Edward Betts 2019-10-22 22:21:25 +01:00
parent 7a4af12f3f
commit db0eda0abf

View file

@ -192,7 +192,9 @@ def get_catalog_from_painting(entity):
try: try:
check_catalog(entity, catalog) check_catalog(entity, catalog)
except requests.exceptions.ReadTimeout: except (requests.exceptions.ReadTimeout,
requests.exceptions.ConnectTimeout,
requests.exceptions.ConnectionError):
pass pass
return catalog return catalog