Page MenuHomeSoftware Heritage

AttributeError: 'NoneType' object has no attribute 'endswith'
Closed, MigratedEdits Locked

Description

https://sentry.softwareheritage.org/organizations/swh/issues/104915/?referrer=phabricator_plugin

AttributeError: 'NoneType' object has no attribute 'endswith'
(9 additional frame(s) were not displayed)
...
  File "pyld/jsonld.py", line 1812, in _compact
    active_ctx, active_property, element, options)
  File "pyld/jsonld.py", line 4989, in _compact_value
    base=options.get('base', ''))
  File "pyld/jsonld.py", line 4892, in _compact_iri
    return remove_base(base, iri)
  File "pyld/jsonld.py", line 535, in remove_base
    rel = parse_url(iri)
  File "pyld/jsonld.py", line 625, in parse_url
    (g[0] == 'http' and g[1].endswith(':80'))):

Problem during metadata translation for content 9ebc106ce0a48b4cf39705d6c5085adf609ee71e