We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a13ad79 commit f4d5444Copy full SHA for f4d5444
cities_light/geonames.py
@@ -23,7 +23,7 @@ def __init__(self, url, force=False):
23
24
self.downloaded = self.download(url, self.file_path, force)
25
26
- if destination_file_name.split('.')[-1] == 'zip':
+ if self.downloaded and destination_file_name.split('.')[-1] == 'zip':
27
# extract the destination file, use the extracted file as new
28
# destination
29
destination_file_name = destination_file_name.replace(
0 commit comments