From a0a6c5a0b47a01245739fc60f25b073166b57263 Mon Sep 17 00:00:00 2001 From: Mohsen Mahmoodi Date: Sun, 17 Nov 2024 13:21:05 +0200 Subject: [PATCH] #245: Change url to urls in cities.download --- cities/management/commands/cities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cities/management/commands/cities.py b/cities/management/commands/cities.py index f4c85d13..6ae4b7a3 100644 --- a/cities/management/commands/cities.py +++ b/cities/management/commands/cities.py @@ -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]: