Skip to content

Commit

Permalink
Output error message for memory error even if not --verbose, #737
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Apr 29, 2019
1 parent 5820308 commit 4044209
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
1.0.5
-----

Improvements:

* Output error message for memory error even if not :code:`--verbose`.

1.0.4 - March 16, 2019
----------------------

Expand Down
2 changes: 1 addition & 1 deletion csvkit/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def handler(t, value, traceback):
'flag or with the PYTHONIOENCODING environment variable. Use the -v flag to see '
'the complete error.\n' % self.args.encoding)
else:
sys.stderr.write('%s\n' % six.text_type(value))
sys.stderr.write('%s: %s\n' % (t.__name__, six.text_type(value)))

sys.excepthook = handler

Expand Down

0 comments on commit 4044209

Please sign in to comment.