Skip to content

Commit

Permalink
make sure postalcode is a string
Browse files Browse the repository at this point in the history
  • Loading branch information
pvgenuchten committed Feb 2, 2024
1 parent ac81aa8 commit 2a50d25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycsw/ogc/csw/csw3.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def getcapabilities(self):
etree.SubElement(address,
util.nspath_eval('ows20:PostalCode',
self.parent.context.namespaces)).text = \
metadata_main['contact'].get('postalcode', 'missing')
str(metadata_main['contact'].get('postalcode', 'missing'))

etree.SubElement(address,
util.nspath_eval('ows20:Country', self.parent.context.namespaces)).text = \
Expand Down

0 comments on commit 2a50d25

Please sign in to comment.