Skip to content

Commit

Permalink
Catch all exceptions to suppress error messages
Browse files Browse the repository at this point in the history
There are cases, such as when .nipaprc doesn't exist, that prevents
helper-nipap to work completely. Suppressing any such error message
seems to be the only reasonable option and therefore I've modified this
try/except clause to match all exceptions.

Fixes #711.
  • Loading branch information
plajjan committed Jul 23, 2015
1 parent 242336b commit c2a4503
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nipap-cli/helper-nipap
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ if __name__ == '__main__':
try:
cmd = Command(nipap_cli.cmds, args)
comp = sorted(cmd.complete())
except (NipapError, InvalidCommand):
except Exception:
# handle errors silently
pass

Expand Down

0 comments on commit c2a4503

Please sign in to comment.