Skip to content

Commit c948d78

Browse files
committed
Skip the resource with an empty link
1 parent 7faa53c commit c948d78

File tree

1 file changed

+2
-0
lines changed
  • repo2docker/contentproviders

1 file changed

+2
-0
lines changed

repo2docker/contentproviders/ckan.py

+2
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ def fetch(self, spec, output_dir, yield_output=False):
105105

106106
for resource in resources:
107107
file_url = resource["url"]
108+
if file_url == "":
109+
continue
108110
fname = file_url.rsplit("/", maxsplit=1)[-1]
109111
if fname == "":
110112
fname = resource["id"]

0 commit comments

Comments
 (0)