Skip to content

Commit 94d40a2

Browse files
General exception handling
1 parent 20405f6 commit 94d40a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mfr/extensions/tabular/libs/stdlib_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def parse_stdlib(reader):
7676

7777
# Outside other except because the `if any` line causes more errors to be raised
7878
# on certain exceptions
79-
except UnicodeDecodeError as e:
79+
except Exception as e:
8080
raise TabularRendererError('Cannot render file as csv/tsv. '
8181
'The file may be empty or corrupt',
8282
code=HTTPStatus.BAD_REQUEST,

0 commit comments

Comments
 (0)