Skip to content

Commit 8422671

Browse files
committed
Temporarily raise exceptions for now
1 parent 4038cda commit 8422671

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/murfey/server/ispyb.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
log.info("Loaded ISPyB database session")
5252
# Catch all errors associated with loading ISPyB database
5353
except Exception:
54+
raise
5455
log.error("Error loading ISPyB session", exc_info=True)
5556
ISPyBSession = lambda: None
5657

src/murfey/workflows/clem/register_preprocessing_results.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,7 @@ def run(message: dict, murfey_db: Session, demo: bool = False) -> dict[str, bool
450450
)
451451
return {"success": False, "requeue": False}
452452
except Exception:
453+
raise
453454
logger.error(
454455
"Exception encountered when parsing TIFF preprocessing result: \n"
455456
f"{traceback.format_exc()}"
@@ -464,6 +465,7 @@ def run(message: dict, murfey_db: Session, demo: bool = False) -> dict[str, bool
464465
select(MurfeyDB.Session).where(MurfeyDB.Session.id == session_id)
465466
).one()
466467
except Exception:
468+
raise
467469
logger.error(
468470
"Exception encountered when loading Murfey session information: \n",
469471
f"{traceback.format_exc()}",
@@ -477,6 +479,7 @@ def run(message: dict, murfey_db: Session, demo: bool = False) -> dict[str, bool
477479
murfey_db=murfey_db,
478480
)
479481
except Exception:
482+
raise
480483
logger.error(
481484
"Exception encountered when registering CLEM preprocessing result for "
482485
f"{result.series_name!r}: \n"
@@ -494,6 +497,7 @@ def run(message: dict, murfey_db: Session, demo: bool = False) -> dict[str, bool
494497
)
495498
except Exception:
496499
# Log error but allow workflow to proceed
500+
raise
497501
logger.error(
498502
"Exception encountered when registering data collection group for CLEM workflow "
499503
f"using {result.series_name!r}: \n"
@@ -509,6 +513,7 @@ def run(message: dict, murfey_db: Session, demo: bool = False) -> dict[str, bool
509513
murfey_db=murfey_db,
510514
)
511515
except Exception:
516+
raise
512517
# Log error but allow workflow to proceed
513518
logger.error(
514519
f"Exception encountered when registering grid square for {result.series_name}: \n"

0 commit comments

Comments
 (0)