Skip to content

Commit 002a6dc

Browse files
committed
Merge pull request #152 from open-data/fix/misc-exception-handling
Improved Exception Handling on File Upload
1 parent a4a29a1 commit 002a6dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ckanext/recombinant/read_excel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919

2020

2121
def read_excel(f: Union[str, FlaskFileStorage, FieldStorage],
22-
expected_sheet_names: List[str] = [],
23-
bad_sheet_names: List[str] = [],
22+
expected_sheet_names: List[str] = [], # type: ignore[reportCallInDefaultInitializer] # noqa: E501
23+
bad_sheet_names: List[str] = [], # type: ignore[reportCallInDefaultInitializer] # noqa: E501
2424
file_contents: Optional[str] = None) -> Iterator[Any]:
2525
"""
2626
Return a generator that opens the excel file f (name or file object)

0 commit comments

Comments
 (0)