Skip to content

Commit

Permalink
Print traceback on error
Browse files Browse the repository at this point in the history
  • Loading branch information
suchow committed Apr 16, 2016
1 parent 1309052 commit 5fbbeff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions proselint/command_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import sys
from .score import score as lintscore
from .version import __version__
import traceback


CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help'])
Expand Down Expand Up @@ -121,8 +122,8 @@ def proselint(mode, paths, clean, debug, score,
errors = lint(f, mode=mode, debug=debug)
num_errors += len(errors)
print_errors(fp, errors, output_json, compact=compact)
except Exception as e:
print(e)
except Exception:
traceback.print_exc()

# Return an exit code
close_cache_shelves()
Expand Down

0 comments on commit 5fbbeff

Please sign in to comment.