Commit f1b603bc authored by Pierre Paleo's avatar Pierre Paleo
Browse files

Merge branch 'payno-master-patch-46245' into 'master'

utils: get_compacted_slices: fix issue if urls are empty

See merge request !163
parents 1eae3e11 62d564de
Pipeline #65153 passed with stages
in 6 minutes and 5 seconds
__version__ = "2021.2.1-rc2"
__version__ = "2021.2.1-rc3"
__nabu_modules__ = [
......@@ -46,6 +46,9 @@ def get_compacted_dataslices(urls, subsampling=None):
def merge_slices(slice1, slice2):
return slice(slice1.start, slice2.stop)
if len(urls) == 0:
return urls
sorted_files_indices = sorted(urls.keys())
idx0 = sorted_files_indices[0]
first_url = urls[idx0]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment