Closed landam closed 3 years ago
@Kozzba To be done:
No error
On Linux it fails with IsDirectory
2021-02-03T16:50:00 WARNING Traceback (most recent call last):
File "/home/martin/git/ctu-geoforall-lab/qgis-gtfs-plugin/../qgis-gtfs-plugin/GTFS.py", line 307, in run
csv_files = self.unzip_file(self.GTFS_folder)
File "/home/martin/git/ctu-geoforall-lab/qgis-gtfs-plugin/../qgis-gtfs-plugin/GTFS.py", line 382, in unzip_file
with ZipFile(GTFS_folder, 'r') as zip:
File "/usr/lib/python3.9/zipfile.py", line 1239, in __init__
self.fp = io.open(file, filemode)
IsADirectoryError: [Errno 21] Is a directory: 'x2'
Steps to reproduce:
1) load sample_data/broken.zip
Goal:
Eg.
File 'sample_data/broken.zip': File is not a zip file
shown probably by
finished()
.Reason taken from exception