Skip to content
Snippets Groups Projects
Commit 224aa4c2 authored by Benjamin Schubert's avatar Benjamin Schubert
Browse files

Merge branch 'bschubert/fix-unbound-variable-exception' into 'master'

element.py: fix unbounded variable in nested python exception

See merge request !1006
parents a116f576 180fa774
No related branches found
No related tags found
1 merge request!1006element.py: fix unbounded variable in nested python exception
Pipeline #40016838 passed with warnings
......@@ -1612,9 +1612,9 @@ class Element(Plugin):
sandbox_vpath = sandbox_vroot.descend(path_components)
try:
sandbox_vpath.import_files(workspace.get_absolute_path())
except UtilError as e:
except UtilError as e2:
self.warn("Failed to preserve workspace state for failed build sysroot: {}"
.format(e))
.format(e2))
self.__set_build_result(success=False, description=str(e), detail=e.detail)
self._cache_artifact(rootdir, sandbox, e.collect)
......
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