We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
master
Configure CITIES_FILES for a pre-downloaded file without URL:
CITIES_FILES = { 'country': { 'filename': 'not-existing', 'urls': [] }, }
Run the import command:
python manage.py cities --import=country
Exception: File not found and download failed: citiesxx500.zip [[]]
UnboundLocalError: cannot access local variable 'url' where it is not associated with a value
In the file cities/management/commands/citities.py method def download(self, filekey):, we have a line to raise an exception like this:
cities/management/commands/citities.py
def download(self, filekey):
raise Exception("File not found and download failed: {} [{}]".format(filename, url))
It should be changed to:
raise Exception("File not found and download failed: {} [{}]".format(filename, urls))
The text was updated successfully, but these errors were encountered:
coderholic#245: Change url to urls in cities.download
a0a6c5a
Successfully merging a pull request may close this issue.
Checklist
master
branch of django-cities.Steps to reproduce
Configure CITIES_FILES for a pre-downloaded file without URL:
Run the import command:
Expected behavior
Actual behavior
Reason
In the file
cities/management/commands/citities.py
methoddef download(self, filekey):
, we have a line to raise an exception like this:It should be changed to:
The text was updated successfully, but these errors were encountered: