Skip to content

Commit

Permalink
fix: accept missing url_type
Browse files Browse the repository at this point in the history
  • Loading branch information
smotornyuk committed Jul 28, 2024
1 parent b2e2f60 commit cab43d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ckanext/resource_indexer/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def _get_removable_filepath_for_resource(
res_id = res["id"]
res_url = res["url"]

if res["url_type"] == "upload":
if res.get("url_type") == "upload":
uploader = get_resource_uploader(res)

# TODO temporary workaround for ckanext-cloudstorage support
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = ckanext-resource_indexer
version = 0.4.1
version = 0.4.2
description =
long_description = file: README.md
long_description_content_type = text/markdown
Expand Down

0 comments on commit cab43d3

Please sign in to comment.