Skip to content

Commit

Permalink
handle parsing errors in shell
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Johnston committed Mar 23, 2018
1 parent a86ad9e commit 8ad567d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rdftools/scripts/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,10 @@ def parse(context, args):
SimpleFile(args2[0]), format,
context.graph, context.base)
info(i18n.t('shell.graph_updated', len=len(context.graph)))
except SyntaxError as ex:
error(i18n.t('shell.file_read_err', err=ex))
except IOError as ex:
exception(i18n.t('shell.file_read_err', err=ex))
error(i18n.t('shell.file_read_err', err=ex))
else:
warning(i18n.t('shell.invalid_params'))
return context
Expand Down

0 comments on commit 8ad567d

Please sign in to comment.