Skip to content

Commit

Permalink
libcoveweb2/utils.py: get_file_type_for_flatten_tool: include an erro…
Browse files Browse the repository at this point in the history
…r message in raise at end

#3
  • Loading branch information
odscjames committed Jul 19, 2023
1 parent 82f96f8 commit 4a6d6da
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion libcoveweb2/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,11 @@ def get_file_type_for_flatten_tool(supplied_data_file: SuppliedDataFile):
except FileNotFoundError:
pass
# All right, we give up.
raise
raise Exception(
"Could not get file type for file "
+ str(supplied_data_file.id)
+ " with file name"
+ str(supplied_data_file.filename)
+ " and content type "
+ str(supplied_data_file.content_type)
)

0 comments on commit 4a6d6da

Please sign in to comment.