Skip to content

Commit be8e3a6

Browse files
committed
SXDEDPCXZIC-420 / fix code issue in release-2.10.0
1 parent 47b09b2 commit be8e3a6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ckanext/datavic_odp_theme/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def dtv_exceeds_max_size_limit(resource_id: str) -> bool:
223223

224224
limit = conf.get_dtv_max_size_limit()
225225
filesize = resource.get("filesize")
226-
if filesize and int(filesize) >= int(limit):
226+
if filesize and filesize.isdigit() and int(filesize) >= int(limit):
227227
return True
228228

229229
return False

0 commit comments

Comments
 (0)