Skip to content
Snippets Groups Projects
Commit e2c21172 authored by Chris Lamb's avatar Chris Lamb :eyes:
Browse files

Don't cause a traceback if cbfstool extraction failed. (Re: #398)

parent a5486ebd
No related branches found
No related tags found
No related merge requests found
Pipeline #802224 passed with warnings
......@@ -87,7 +87,11 @@ class CbfsContainer(Archive):
dest_path,
]
logger.debug("cbfstool extract %s to %s", member_name, dest_path)
our_check_output(cmd, stderr=subprocess.DEVNULL)
try:
our_check_output(cmd, stderr=subprocess.DEVNULL)
except subprocess.CalledProcessError:
logger.error("unable to extract %s", member_name)
return None
return dest_path
......
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