fix: remove bare excepts

This commit is contained in:
Ankush Menat
2021-09-01 14:40:56 +05:30
parent 331ec13012
commit 76f1ed624a
24 changed files with 42 additions and 42 deletions

View File

@@ -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'))