summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--morphlib/extensions.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/morphlib/extensions.py b/morphlib/extensions.py
index b270d304..051a54a7 100644
--- a/morphlib/extensions.py
+++ b/morphlib/extensions.py
@@ -38,6 +38,7 @@ class ExtensionNotExecutableError(ExtensionError):
pass
def _get_root_repo():
+ workspace = morphlib.workspace.open('.')
system_branch = morphlib.sysbranchdir.open_from_within('.')
root_repo_dir = morphlib.gitdir.GitDirectory(
system_branch.get_git_directory_name(
@@ -77,7 +78,8 @@ def _list_extensions(kind):
try:
repo_extension_filenames = \
_list_repo_extension_filenames(kind)
- except (sysbranchdir.NotInSystemBranch):
+ except (morphlib.workspace.NotInWorkspace,
+ sysbranchdir.NotInSystemBranch):
# Squash this and just return no system branch extensions
pass
morph_extension_filenames = _list_morph_extension_filenames(kind)