summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/repo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/repo.py b/lib/spack/spack/repo.py
index 706fe40dd2..ef1d684cad 100644
--- a/lib/spack/spack/repo.py
+++ b/lib/spack/spack/repo.py
@@ -662,7 +662,7 @@ class RepoPath(object):
if namespace:
fullspace = get_full_namespace(namespace)
if fullspace not in self.by_namespace:
- raise UnknownNamespaceError(spec.namespace)
+ raise UnknownNamespaceError(namespace)
return self.by_namespace[fullspace]
# If there's no namespace, search in the RepoPath.