mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 05:09:11 +00:00
fix: remove bare excepts
This commit is contained in:
@@ -82,7 +82,7 @@ class DailyWorkSummary(Document):
|
||||
crop=True
|
||||
)
|
||||
d.image = thumbnail_image
|
||||
except:
|
||||
except Exception:
|
||||
d.image = original_image
|
||||
|
||||
if d.sender in did_not_reply:
|
||||
|
||||
@@ -51,7 +51,7 @@ class LeaveControlPanel(Document):
|
||||
la.docstatus = 1
|
||||
la.save()
|
||||
leave_allocated_for.append(d[0])
|
||||
except:
|
||||
except Exception:
|
||||
pass
|
||||
if leave_allocated_for:
|
||||
msgprint(_("Leaves Allocated Successfully for {0}").format(comma_and(leave_allocated_for)))
|
||||
|
||||
Reference in New Issue
Block a user