[Notes] [Git][BuildStream/buildstream][master] 2 commits: element.py: fix unbounded variable in nested python exception



Title: GitLab

Benjamin Schubert pushed to branch master at BuildStream / buildstream

Commits:

1 changed file:

Changes:

  • buildstream/element.py
    ... ... @@ -1612,9 +1612,9 @@ class Element(Plugin):
    1612 1612
                             sandbox_vpath = sandbox_vroot.descend(path_components)
    
    1613 1613
                             try:
    
    1614 1614
                                 sandbox_vpath.import_files(workspace.get_absolute_path())
    
    1615
    -                        except UtilError as e:
    
    1615
    +                        except UtilError as e2:
    
    1616 1616
                                 self.warn("Failed to preserve workspace state for failed build sysroot: {}"
    
    1617
    -                                      .format(e))
    
    1617
    +                                      .format(e2))
    
    1618 1618
     
    
    1619 1619
                         self.__set_build_result(success=False, description=str(e), detail=e.detail)
    
    1620 1620
                         self._cache_artifact(rootdir, sandbox, e.collect)
    



  • [Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]