Skip to content

Commit

Permalink
Fix for Python 2 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
thombashi committed Jul 15, 2018
1 parent f599786 commit 1f58723
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sqlitebiter/_ipynb_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def load_ipynb_file(file_path, encoding):
return nbformat.read(f, as_version=4)
except AttributeError as e:
raise nbformat.reader.NotJSONError(msgfy.to_error_message(e))
except FileNotFoundError as e:
except IOError as e:
_schema_not_found_error_handler(e)
raise

Expand All @@ -57,7 +57,7 @@ def load_ipynb_url(url, proxies):

try:
return (nbformat.reads(response.text, as_version=4), len(response.content))
except FileNotFoundError as e:
except IOError as e:
_schema_not_found_error_handler(e)
raise

Expand Down

0 comments on commit 1f58723

Please sign in to comment.