Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mpsd-software-manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
MPSD Computational Science
mpsd-software-manager
Commits
71d6ca8e
Commit
71d6ca8e
authored
1 year ago
by
Hans Fangohr
Browse files
Options
Downloads
Patches
Plain Diff
ValueError is often used if a (user-provided) value is incorrect
parent
82c64e52
No related branches found
No related tags found
2 merge requests
!19
Move linux-debian11 into main
,
!10
if a file or directory cannot be found use FileNotFoundError
Pipeline
#367979
failed
1 year ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mpsd-software-environment.py
+2
-2
2 additions, 2 deletions
mpsd-software-environment.py
with
2 additions
and
2 deletions
mpsd-software-environment.py
+
2
−
2
View file @
71d6ca8e
...
@@ -254,7 +254,7 @@ def install_environment(
...
@@ -254,7 +254,7 @@ def install_environment(
cache when installing toolchains. Defaults to False.
cache when installing toolchains. Defaults to False.
Raises:
Raises:
Exception
: If a requested toolchain is not available in the specified release.
ValueError
: If a requested toolchain is not available in the specified release.
Returns:
Returns:
None
None
...
@@ -292,7 +292,7 @@ def install_environment(
...
@@ -292,7 +292,7 @@ def install_environment(
for
toolchain
in
toolchains
:
for
toolchain
in
toolchains
:
if
toolchain
not
in
available_toolchains
:
if
toolchain
not
in
available_toolchains
:
raise
Exception
(
raise
ValueError
(
f
"
Toolchain
'
{
toolchain
}
'
is not available in release
{
mpsd_release
}
.
"
f
"
Toolchain
'
{
toolchain
}
'
is not available in release
{
mpsd_release
}
.
"
)
)
...
...
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