Anagraph/yogrt

Fail when we try to unzip and load a shp from s3

Closed this issue · 1 comments

Describe the bug
Fail when we try to unzip and load a shp from s3

To Reproduce
Steps to reproduce the behavior:

Load a shp unzip file with these parameters in the source.yaml file:

image

We have this error:

ValueError: Zip file contains more than one file

Expected behavior

I expect the shp file to be loaded into the database.

System configurations

  • OS: ubuntu
  • Version [e.g. 22.04]

yogrt/yogrt/source.py

Lines 60 to 62 in b878fee

if len(zip_infos) > 1:
raise ValueError("Zip file contains more than one file")