Skip to content

Commit

Permalink
Remove obsolete IOError alias
Browse files Browse the repository at this point in the history
Aliased since Python 3.3.
  • Loading branch information
john-kurkowski committed Oct 23, 2020
1 parent 8782832 commit d126874
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tldextract/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def get(self, namespace, key):
try:
with open(cache_filepath) as cache_file:
return json.load(cache_file)
except (IOError, ValueError) as exc:
except (OSError, ValueError) as exc:
LOG.error(
"error reading TLD cache file %s: %s",
cache_filepath,
Expand All @@ -56,7 +56,7 @@ def set(self, namespace, key, value):
try:
with open(cache_filepath, 'w') as cache_file:
json.dump(value, cache_file)
except IOError as ioe:
except OSError as ioe:
LOG.warning(
(
"unable to cache %s.%s in %s. This could refresh the "
Expand Down

0 comments on commit d126874

Please sign in to comment.