Skip to content

Commit

Permalink
Add proper exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxJPRey committed Dec 26, 2024
1 parent 2db6875 commit 707345f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ansys/mechanical/core/embedding/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

HAS_ANSYS_VIZ = True
"""Whether or not PyVista exists."""
except:
except ImportError:
HAS_ANSYS_VIZ = False


Expand Down
2 changes: 1 addition & 1 deletion src/ansys/mechanical/core/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def check_valid_start_instance(start_instance):

if start_instance.lower() not in ["true", "false"]:
raise ValueError(
f"The value for 'start_instance' should be 'True' or 'False' (case insensitive)."
"The value for 'start_instance' should be 'True' or 'False' (case insensitive)."
)

return start_instance.lower() == "true"
Expand Down

0 comments on commit 707345f

Please sign in to comment.