Skip to content

Commit

Permalink
fallback to default schema
Browse files Browse the repository at this point in the history
  • Loading branch information
ccancellieri committed Oct 28, 2021
1 parent f91f516 commit b82eb89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/spatial/harvesters/csw.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def fetch_stage(self,harvest_object):
# load config
self._set_source_config(harvest_object.source.config)
# get output_schema from config
output_schema = self.source_config.get('output_schema',self.output_schema())
output_schema = self.source_config.get('output_schema', self.output_schema())
identifier = harvest_object.guid
try:
record = self.csw.getrecordbyid([identifier], outputschema=output_schema)
Expand Down

0 comments on commit b82eb89

Please sign in to comment.