diff --git a/certbot/CHANGELOG.md b/certbot/CHANGELOG.md index 08002fbd9..8387bbd63 100644 --- a/certbot/CHANGELOG.md +++ b/certbot/CHANGELOG.md @@ -14,7 +14,7 @@ Certbot adheres to [Semantic Versioning](https://semver.org/). ### Fixed -* +* Fixed a bug where issuance error details where not printed More details about these changes can be found on our GitHub repo. diff --git a/certbot/src/certbot/_internal/log.py b/certbot/src/certbot/_internal/log.py index 3e38d656b..5a10c9fcb 100644 --- a/certbot/src/certbot/_internal/log.py +++ b/certbot/src/certbot/_internal/log.py @@ -373,8 +373,9 @@ def post_arg_parse_except_hook(exc_type: Type[BaseException], exc_value: BaseExc logger.error(str(exc_value)) exit_func() logger.error('An unexpected error occurred:') - if messages.is_acme_error(exc_value): - logger.error(display_util.describe_acme_error(cast(messages.Error, exc_value))) + acme_error = getattr(exc_value, "error", exc_value) + if messages.is_acme_error(acme_error): + logger.error(display_util.describe_acme_error(cast(messages.Error, acme_error))) else: output = traceback.format_exception_only(exc_type, exc_value) # format_exception_only returns a list of strings each