archesproject / arches

Arches is a web platform for creating, managing, & visualizing geospatial data. Arches was inspired by the needs of the Cultural Heritage community, particularly the widespread need of organizations to build & manage cultural heritage inventories
GNU Affero General Public License v3.0
212 stars 143 forks source link

syntax error with ontology load command #5809

Closed apeters closed 4 years ago

apeters commented 4 years ago

when calling the command python manage.py load_ontology -s cidoc_crm a syntax error is thrown

  File "manage.py", line 30, in <module>
    execute_from_command_line(sys.argv)
  File "/Users/alexei/Work/Projects/arches4/virtualenv/ENV/lib/python3.7/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
    utility.execute()
  File "/Users/alexei/Work/Projects/arches4/virtualenv/ENV/lib/python3.7/site-packages/django/core/management/__init__.py", line 375, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/Users/alexei/Work/Projects/arches4/virtualenv/ENV/lib/python3.7/site-packages/django/core/management/base.py", line 323, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/Users/alexei/Work/Projects/arches4/virtualenv/ENV/lib/python3.7/site-packages/django/core/management/base.py", line 364, in execute
    output = self.handle(*args, **options)
  File "/Users/alexei/Work/Projects/arches4/arches/management/commands/load_ontology.py", line 77, in handle
    if ontology_version is None:
UnboundLocalError: local variable 'ontology_version' referenced before assignment
njkim commented 4 years ago

It works as expected