We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f00dbf commit 12ab53aCopy full SHA for 12ab53a
1 file changed
src/murfey/workflows/tomo/tomo_metadata.py
@@ -243,8 +243,6 @@ def register_search_map_in_database(
243
)
244
murfey_db.add(search_map)
245
murfey_db.commit()
246
- if close_db:
247
- murfey_db.close()
248
249
if search_map_hooks := entry_points(group="murfey.hooks", name="search_map"):
250
try:
@@ -257,6 +255,8 @@ def register_search_map_in_database(
257
255
258
256
except Exception as e:
259
logger.error(f"Call to search map hook failed with {e}", exc_info=True)
+ if close_db:
+ murfey_db.close()
260
261
262
def register_batch_position_in_database(
0 commit comments