Improved javascript error handling

This commit is contained in:
lwark
2025-07-02 14:52:23 -05:00
parent c4c330b90c
commit 8e21c349cb
4 changed files with 40 additions and 7 deletions

View File

@@ -137,7 +137,8 @@ class ProcedureCreation(QDialog):
def update_reagent(self, reagentrole:str, name_lot_expiry:str):
try:
name, lot, expiry = name_lot_expiry.split(" - ")
except ValueError:
except ValueError as e:
logger.debug(f"Couldn't perform split due to {e}")
return
self.procedure.update_reagents(reagentrole=reagentrole, name=name, lot=lot, expiry=expiry)