Skip to content

Exception when parse malformed url #196

@alphatownsman

Description

@alphatownsman
from pyld import jsonld

jsonld.parse_url('https://nodebb.org')
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/takahe-venv/lib/python3.12/site-packages/pyld/jsonld.py", line 624, in parse_url
    if ((g[0] == 'https' and g[1].endswith(':443')) or
                             ^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'endswith'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions