Commit 3dca2855 authored by Andrew Halberstadt's avatar Andrew Halberstadt
Browse files

Bug 1598099 - [mozbuild] Catch correct exception when instantiating a...

Bug 1598099 - [mozbuild] Catch correct exception when instantiating a Repository object without a build config, r=froydnj

Differential Revision: https://phabricator.services.mozilla.com/D54021

--HG--
extra : moz-landing-system : lando
parent dcd325ee
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ from mozversioncontrol import (
    GitRepository,
    HgRepository,
    InvalidRepoPath,
    MissingConfigureInfo,
)

from .backend.configenvironment import (
@@ -402,7 +403,7 @@ class MozbuildObject(ProcessExecutionMixin):
        # If we don't have a configure context, fall back to auto-detection.
        try:
            return get_repository_from_build_config(self)
        except BuildEnvironmentNotFoundException:
        except (BuildEnvironmentNotFoundException, MissingConfigureInfo):
            pass

        return get_repository_object(self.topsrcdir)