Skip to content

Commit dd90fef

Browse files
committedOct 23, 2024·
Be nicer if eve2cml is not installed.
1 parent caef53f commit dd90fef

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎virl/cli/up/commands.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,12 @@ def up(repo=None, provision=False, start=True, **kwargs):
137137
(lfname, lfext) = os.path.splitext(fname)
138138
if lfext.lower() == ".unl":
139139
# This is an EVE-NG lab. Convert it if we can.
140-
rc = call(["eve2cml", fname])
140+
rc = -1
141+
try:
142+
rc = call(["eve2cml", fname])
143+
except FileNotFoundError:
144+
pass
145+
141146
if rc != 0:
142147
click.secho(
143148
"ERROR: Failed to convert {} from EVE-NG to CML. Is https://pypi.org/project/eve2cml/ installed?".format(fname),

0 commit comments

Comments
 (0)
Please sign in to comment.