Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pycsw import error on empty keywords at mcf #5

Open
pvgenuchten opened this issue Sep 7, 2023 · 0 comments
Open

pycsw import error on empty keywords at mcf #5

pvgenuchten opened this issue Sep 7, 2023 · 0 comments

Comments

@pvgenuchten
Copy link
Owner

caused by sequence:

keywords:
  default:
    keywords: 
    - ''
TypeError: sequence item 0: expected str instance, NoneType found
Could not parse "/builds/7sRQ5izy/0/isric/lsc-hubs/rwanda-hub/portals/RW/mgwalsh-RwaSIS/WP20.xml" as an XML record
Traceback (most recent call last):
  File "/home/pycsw/pycsw/pycsw/core/admin.py", line 373, in load_records
    record = metadata.parse_record(context, metadata_record, repo)
  File "/home/pycsw/pycsw/pycsw/core/metadata.py", line 119, in parse_record
    return _parse_metadata(context, repos, record)
  File "/home/pycsw/pycsw/pycsw/core/metadata.py", line 149, in _parse_metadata
    return [_parse_iso(context, repos, exml)]
  File "/home/pycsw/pycsw/pycsw/core/metadata.py", line 1429, in _parse_iso
    _set(context, recobj, 'pycsw:Keywords', ','.join([k.name for k in all_keywords]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant