Skip to content

Commit 5dbbc89

Browse files
committed
libcoveweb2/utils.py: get_file_type_for_flatten_tool: include an error message in raise at end
#3
1 parent 82f96f8 commit 5dbbc89

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## [Unreleased]
99

10+
## Fixed
11+
12+
- utils.py: get_file_type_for_flatten_tool: include an error message in raise at end https://github.com/OpenDataServices/lib-cove-web-2/issues/3
13+
1014
## [0.2.0] - 2023-07-11
1115

1216
## Added

libcoveweb2/utils.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,11 @@ def get_file_type_for_flatten_tool(supplied_data_file: SuppliedDataFile):
3838
except FileNotFoundError:
3939
pass
4040
# All right, we give up.
41-
raise
41+
raise Exception(
42+
"Could not get file type for file "
43+
+ str(supplied_data_file.id)
44+
+ " with file name "
45+
+ str(supplied_data_file.filename)
46+
+ " and content type "
47+
+ str(supplied_data_file.content_type)
48+
)

0 commit comments

Comments
 (0)