Skip to content

Commit f4d5444

Browse files
committed
Don't re-extract if the file was not download
1 parent a13ad79 commit f4d5444

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cities_light/geonames.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def __init__(self, url, force=False):
2323

2424
self.downloaded = self.download(url, self.file_path, force)
2525

26-
if destination_file_name.split('.')[-1] == 'zip':
26+
if self.downloaded and destination_file_name.split('.')[-1] == 'zip':
2727
# extract the destination file, use the extracted file as new
2828
# destination
2929
destination_file_name = destination_file_name.replace(

0 commit comments

Comments
 (0)