1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-23 07:20:55 +03:00

Stopped catching silly things

This commit is contained in:
Brad Warren
2015-06-26 18:07:40 -07:00
parent 4e221eb9bd
commit 88507fea87
2 changed files with 1 additions and 10 deletions

View File

@@ -676,11 +676,7 @@ def main(cli_args=sys.argv[1:]):
except errors.Error as error:
handle_exception_common()
return error
except KeyboardInterrupt:
handle_exception_common()
# Ensures a new line is printed
return ""
except: # pylint: disable=bare-except
except Exception: # pylint: disable=broad-except
handle_exception_common()
return ("An unexpected error occured. Please see the logfiles in {0} "
"for more details.".format(args.logs_dir))

View File

@@ -67,11 +67,6 @@ class CLITest(unittest.TestCase):
errors.Error, self._call, ['--debug'] + cmd_arg, attrs)
self._call(cmd_arg, attrs)
attrs['view_config_changes.side_effect'] = [KeyboardInterrupt]
self.assertRaises(
KeyboardInterrupt, self._call, ['--debug'] + cmd_arg, attrs)
self._call(cmd_arg, attrs)
attrs['view_config_changes.side_effect'] = [ValueError]
self.assertRaises(
ValueError, self._call, ['--debug'] + cmd_arg, attrs)