Skip to content

Commit

Permalink
Not found in python 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
mwouts committed Jul 10, 2018
1 parent 56b0765 commit ba51057
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nbrmd/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from nbrmd import readf, writef
from nbrmd import writes as rmd_writes
from .combine import combine_inputs_with_outputs
from json.decoder import JSONDecodeError
from nbformat.reader import NotJSONError
import argparse

Expand Down Expand Up @@ -40,7 +39,7 @@ def convert(nb_files, in_place=True, combine=True):
nb_outputs = readf(nb_dest)
combine_inputs_with_outputs(nb, nb_outputs)
msg = '(outputs were preserved)'
except (IOError, JSONDecodeError, NotJSONError) as e:
except (IOError, NotJSONError) as e:
msg = '(outputs could not be preserved: {})'.format(e)
print('R Markdown {} being converted to '
'Jupyter notebook {} {}'
Expand Down

0 comments on commit ba51057

Please sign in to comment.