Skip to content

Commit 9b6ac86

Browse files
committed
Fix Ruff E722
Do not use bare `except`
1 parent c3f964d commit 9b6ac86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drf_excel/fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def init_value(self, value):
141141
return self._parse_date(value, "TIME_FORMAT", parse_time).replace(
142142
tzinfo=None
143143
)
144-
except:
144+
except Exception:
145145
pass
146146
return value
147147

0 commit comments

Comments
 (0)