mirror of
https://github.com/certbot/certbot.git
synced 2026-06-08 08:12:15 -04:00
Fixing minute problems with code
This commit is contained in:
parent
d1e9ffbe9a
commit
928ea2f5cb
1 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,7 @@
|
|||
"""Certbot main entry point."""
|
||||
from __future__ import print_function
|
||||
import atexit
|
||||
import dialog
|
||||
import functools
|
||||
import logging.handlers
|
||||
import os
|
||||
|
|
@ -623,8 +624,7 @@ def _handle_exception(exc_type, exc_value, trace, config):
|
|||
# Here we're passing a client or ACME error out to the client at the shell
|
||||
# Tell the user a bit about what happened, without overwhelming
|
||||
# them with a full traceback
|
||||
from dialog import DialogError
|
||||
if issubclass(exc_type, DialogError):
|
||||
if issubclass(exc_type, dialog.error):
|
||||
err = exc_value.complete_message()
|
||||
else:
|
||||
err = traceback.format_exception_only(exc_type, exc_value)[0]
|
||||
|
|
|
|||
Loading…
Reference in a new issue