Skip to content

Commit

Permalink
Update helpers.py (#9929) (#9930)
Browse files Browse the repository at this point in the history
* Update helpers.py

Co-authored-by: mattiagiupponi <51856725+mattiagiupponi@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and mattiagiupponi authored Aug 29, 2022
1 parent ca747bb commit 8b44b4d
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 8b44b4d

Please sign in to comment.