You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This command for i in ../static/exports/*2017-10-10.zip; do python manage.py import_tampere_casem $i;done
raises this exception a few times:
Created organization Osaamis- ja elinkeinolautakunta
Importing case...
Import done!
Importing data...
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/site/virtualenv/paatos/lib/python3.5/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line
utility.execute()
File "/site/virtualenv/paatos/lib/python3.5/site-packages/django/core/management/__init__.py", line 359, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/site/virtualenv/paatos/lib/python3.5/site-packages/django/core/management/base.py", line 294, in run_from_argv
self.execute(*args, **cmd_options)
File "/site/virtualenv/paatos/lib/python3.5/site-packages/django/core/management/base.py", line 345, in execute
output = self.handle(*args, **options)
File "/site/paatos-tampere.6aika.fi/www/paatos/decisions/management/commands/import_tampere_casem.py", line 19, in handle
importer.import_data()
File "/site/paatos-tampere.6aika.fi/www/paatos/decisions/importer/paatos_scraper.py", line 265, in import_data
self._handle_organization(current_path + '/index.json')
File "/site/paatos-tampere.6aika.fi/www/paatos/decisions/importer/paatos_scraper.py", line 205, in _handle_organization
self._import_organization(json.load(org_file))
File "/site/paatos-tampere.6aika.fi/www/paatos/decisions/importer/paatos_scraper.py", line 28, in _import_organization
classification = data['classification'].title()
AttributeError: 'NoneType' object has no attribute 'title'
The text was updated successfully, but these errors were encountered:
This command
for i in ../static/exports/*2017-10-10.zip; do python manage.py import_tampere_casem $i;done
raises this exception a few times:
The text was updated successfully, but these errors were encountered: