Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Spack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eic_tools
Spack
Commits
8ab47537
Commit
8ab47537
authored
8 years ago
by
Todd Gamblin
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix exception constructors. (#1663)
parent
cf11c327
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/spack/spack/provider_index.py
+7
-3
7 additions, 3 deletions
lib/spack/spack/provider_index.py
with
7 additions
and
3 deletions
lib/spack/spack/provider_index.py
+
7
−
3
View file @
8ab47537
...
...
@@ -32,6 +32,7 @@
from
yaml.error
import
MarkedYAMLError
import
spack
import
spack.error
class
ProviderIndex
(
object
):
...
...
@@ -201,11 +202,10 @@ def from_yaml(stream):
"
error parsing YAML ProviderIndex cache:
"
,
str
(
e
))
if
not
isinstance
(
yfile
,
dict
):
raise
spack
.
spec
.
SpackYAMLError
(
"
YAML ProviderIndex was not a dict.
"
)
raise
ProviderIndexError
(
"
YAML ProviderIndex was not a dict.
"
)
if
'
provider_index
'
not
in
yfile
:
raise
spack
.
spec
.
SpackYAML
Error
(
raise
ProviderIndex
Error
(
"
YAML ProviderIndex does not start with
'
provider_index
'"
)
index
=
ProviderIndex
()
...
...
@@ -291,3 +291,7 @@ def mapiter(mappings):
(
name
,
out_mapping_type
([
transform_fun
(
vpkg
,
pset
)
for
vpkg
,
pset
in
mapiter
(
mappings
)]))
for
name
,
mappings
in
providers
.
items
())
class
ProviderIndexError
(
spack
.
error
.
SpackError
):
"""
Raised when there is a problem with a ProviderIndex.
"""
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment