Skip to content

Commit 39a58d6

Browse files
committed
This case needs catching
1 parent 4da4830 commit 39a58d6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/murfey/client/contexts/tomo_metadata.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ def post_transfer(
5757

5858
windows_path = session_data["TomographySession"]["AtlasId"]
5959
logger.info(f"Windows path to atlas metadata found: {windows_path}")
60+
if not windows_path:
61+
logger.warning("No atlas metadata path found")
62+
return
6063
visit_index = windows_path.split("\\").index(environment.visit)
6164
partial_path = "/".join(windows_path.split("\\")[visit_index + 1 :])
6265
logger.info("Partial Linux path successfully constructed from Windows path")

0 commit comments

Comments
 (0)