Skip to content
New issue

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

error handling if one feature is buggy #295

Open
fuzzylogic2000 opened this issue Nov 6, 2020 · 0 comments
Open

error handling if one feature is buggy #295

fuzzylogic2000 opened this issue Nov 6, 2020 · 0 comments

Comments

@fuzzylogic2000
Copy link
Contributor

Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/home/django/django/lib/python3.6/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
    utility.execute()
  File "/home/django/django/lib/python3.6/site-packages/django/core/management/__init__.py", line 375, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/django/django/lib/python3.6/site-packages/django/core/management/base.py", line 323, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/home/django/django/lib/python3.6/site-packages/django/core/management/base.py", line 364, in execute
    output = self.handle(*args, **options)
  File "/home/django/django/bplan/management/commands/load_bplan.py", line 298, in handle
    type = feature.get("spatial_type")
  File "/home/django/django/lib/python3.6/site-packages/django/contrib/gis/gdal/feature.py", line 108, in get
    return self[field_name].value
  File "/home/django/django/lib/python3.6/site-packages/django/contrib/gis/gdal/feature.py", line 37, in __getitem__
    i = self.index(index)
  File "/home/django/django/lib/python3.6/site-packages/django/contrib/gis/gdal/feature.py", line 114, in index
    raise IndexError('Invalid OFT field name given: %s.' % field_name)
IndexError: Invalid OFT field name given: spatial_type.

It happens from time to time that all bpland aren't loaded because there is one feature causing an error. This should be handeled, so that all other bplans are still loaded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant