Skip to content

Commit

Permalink
Update helpers.py (#9929)
Browse files Browse the repository at this point in the history
* Update helpers.py
  • Loading branch information
mattiagiupponi authored Aug 29, 2022
1 parent 870cd27 commit 87b4198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geonode/geoserver/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1550,7 +1550,7 @@ def fetch_gs_resource(instance, values, tries):
values = {}

_subtype = gs_resource.store.resource_type
if gs_resource.metadata and gs_resource.metadata.get('time', False) and gs_resource.metadata.get('time').enabled:
if hasattr(gs_resource, 'metadata') and gs_resource.metadata.get('time', False) and gs_resource.metadata.get('time').enabled:
_subtype = "vectorTimeSeries"

values.update(dict(store=gs_resource.store.name,
Expand Down

0 comments on commit 87b4198

Please sign in to comment.