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

Exception when parse malformed url #196

Open
alphatownsman opened this issue Nov 29, 2024 · 0 comments
Open

Exception when parse malformed url #196

alphatownsman opened this issue Nov 29, 2024 · 0 comments

Comments

@alphatownsman
Copy link

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'
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