Skip to content
Snippets Groups Projects
Verified Commit 7294ff9e authored by Mattia Rizzolo's avatar Mattia Rizzolo
Browse files

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
No related branches found
No related tags found
No related merge requests found
Pipeline #68556 passed with warnings
......@@ -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')))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment