Using IOError rather than FileNotFoundError (as it's py3.3+ only)
@@ -97,7 +97,7 @@ class AstroQuery(object):
response = pickle.load(f)
if not isinstance(response, requests.Response):
response = None
- except FileNotFoundError:
+ except IOError: # TODO: change to FileNotFoundError once drop py2 support
response = None
if response:
log.debug("Retrieving data from {0}".format(request_file))
