Skip to content

Commit c0867bc

Browse files
committed
Handle data collections without labxchem directory in trigger_xchem
1 parent 33daa9d commit c0867bc

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/dlstbx/services/trigger_xchem.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,12 @@ def trigger_pandda_xchem(
287287
except Exception as e:
288288
print(f"Problem reading .sqlite database for {subdir}: {e}")
289289

290-
xchem_visit_dir = match_dir
291-
# user_settings = match_yaml["autoprocessing"]
290+
if not match_dir:
291+
self.log.debug(f"No directory found for {acronym}, can't continue")
292+
return {"success": True}
293+
else:
294+
xchem_visit_dir = match_dir
295+
# user_settings = match_yaml["autoprocessing"]
292296

293297
if xchem_visit_dir:
294298
self.log.debug(

0 commit comments

Comments
 (0)