Skip to content

Commit

Permalink
Don't do WFS query on server that don't support WFS...
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jun 7, 2019
1 parent 93b9612 commit 83af826
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions geoportal/c2cgeoportal_geoportal/views/entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -1022,8 +1022,11 @@ def themes(self):
ogc_server.url_wfs, self.request, errors=all_errors
) if ogc_server.url_wfs is not None else url
url_internal_wfs = url_wfs
feature_type, errors = self._wms_get_features_type(ogc_server.id, url_internal_wfs)
all_errors |= errors
if ogc_server.wfs_support:
feature_type, errors = self._wms_get_features_type(ogc_server.id, url_internal_wfs)
all_errors |= errors
else:
feature_type = None
attributes = None

if feature_type is not None:
Expand Down

0 comments on commit 83af826

Please sign in to comment.