Skip to content

Commit 95ca2c1

Browse files
committed
more precise exception message
1 parent 8c78c56 commit 95ca2c1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

bioimageio/core/commands.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ def package(
3232

3333
try:
3434
rdf_local_source = resolve_uri(rdf_source)
35+
except Exception as e:
36+
print(f"Failed to resolve RDF source {rdf_source}: {e}")
37+
if verbose:
38+
traceback.print_exc()
39+
return 1
40+
41+
try:
3542
path = path.with_name(path.name.format(src_name=rdf_local_source.stem))
3643
shutil.move(tmp_package_path, path)
3744
except Exception as e:

0 commit comments

Comments
 (0)