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

Updatelayers unexpectedly fails if layer is 'None' #9669

Closed
afabiani opened this issue Jul 15, 2022 · 0 comments
Closed

Updatelayers unexpectedly fails if layer is 'None' #9669

afabiani opened this issue Jul 15, 2022 · 0 comments
Assignees
Labels
4.0.x master minor A low priority issue which might affect only some users and /or not the main functionality

Comments

@afabiani
Copy link
Member

Even in the case the option ignore errors is set to True, this will fail due to a missing check on the layer object.

Traceback (most recent call last):
  File "/usr/src/minerva_cczis_geonode/manage.py", line 31, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.10/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.10/site-packages/django/core/management/__init__.py", line 413, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python3.10/site-packages/django/core/management/base.py", line 354, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/local/lib/python3.10/site-packages/django/core/management/base.py", line 398, in execute
    output = self.handle(*args, **options)
  File "/usr/local/lib/python3.10/site-packages/geonode/geoserver/management/commands/updatelayers.py", line 109, in handle
    output = gs_slurp(
  File "/usr/local/lib/python3.10/site-packages/geonode/geoserver/helpers.py", line 785, in gs_slurp
    layer.set_processing_state("FAILED")
AttributeError: 'NoneType' object has no attribute 'set_processing_state'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.0.x master minor A low priority issue which might affect only some users and /or not the main functionality
Projects
None yet
Development

No branches or pull requests

1 participant