Skip to content

Commit

Permalink
coderholic#245: Change url to urls in cities.download
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsen-mahmoodi committed Nov 17, 2024
1 parent feb63ed commit a0a6c5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cities/management/commands/cities.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def download(self, filekey):
file.write(web_file.read())
file.close()
elif not os.path.exists(os.path.join(self.data_dir, filename)):
raise Exception("File not found and download failed: {} [{}]".format(filename, url))
raise Exception("File not found and download failed: {} [{}]".format(filename, urls))

def get_data(self, filekey):
if 'filename' in settings.files[filekey]:
Expand Down

0 comments on commit a0a6c5a

Please sign in to comment.