Skip to content

Commit ecd14dc

Browse files
authored
safeguard ISO contact parsing (#278) (#284)
1 parent b14c9a5 commit ecd14dc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pygeometa/schemas/iso19139/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,8 @@ def import_(self, metadata: str) -> dict:
164164
mcf['identification']['status'] = identification.status
165165

166166
LOGGER.debug('Setting contacts')
167-
# for contact in m.get_all_contacts():
168-
# mcf['contact'].update(get_contact(contact))
169-
mcf['contact'].update(get_contact(m.contact[0]))
167+
for contact in m.get_all_contacts():
168+
mcf['contact'].update(get_contact(contact))
170169

171170
LOGGER.debug('Setting distribution')
172171
if m.distribution:

0 commit comments

Comments
 (0)