mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-09 08:02:51 +00:00
fix: remove bare excepts
This commit is contained in:
@@ -48,7 +48,7 @@ class LabTest(Document):
|
||||
if item.result_value and item.secondary_uom and item.conversion_factor:
|
||||
try:
|
||||
item.secondary_uom_result = float(item.result_value) * float(item.conversion_factor)
|
||||
except:
|
||||
except Exception:
|
||||
item.secondary_uom_result = ''
|
||||
frappe.msgprint(_('Row #{0}: Result for Secondary UOM not calculated').format(item.idx), title = _('Warning'))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user