Commit 7294ff9e authored by Mattia Rizzolo's avatar Mattia Rizzolo

progress: don't crash when progressbar is missing but requested.

Closes: #939085
Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mattia@debian.org>
parent 7583af27
Pipeline #68556 passed with stage
in 13 minutes and 5 seconds
......@@ -80,7 +80,11 @@ class ProgressManager(object):
except ImportError:
# User asked for bar, so show them the error
if parsed_args.progress:
raise
logging.error(
"Progress bar requested, but the 'progressbar' "
"python module is missing."
)
logging.error("Continuing without progress bar.")
if parsed_args.status_fd:
self.register(StatusFD(os.fdopen(parsed_args.status_fd, 'w')))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment