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

Error related to endpoint on dev2 #218

Closed
dpriskorn opened this issue Sep 9, 2021 · 1 comment
Closed

Error related to endpoint on dev2 #218

dpriskorn opened this issue Sep 9, 2021 · 1 comment
Assignees
Labels
bug Something isn't working v0.12.x
Milestone

Comments

@dpriskorn
Copy link
Contributor

Traceback (most recent call last):
  File "C:/Users/E5450/PycharmProjects/ItemSubjector/main.py", line 8, in <module>
    from helpers.menus import select_task
  File "C:\Users\E5450\PycharmProjects\ItemSubjector\helpers\menus.py", line 19, in <module>
    from tasks import tasks
  File "C:\Users\E5450\PycharmProjects\ItemSubjector\tasks.py", line 46, in <module>
    scholarly_items.fetch_scientific_articles_without_main_subject()
  File "C:\Users\E5450\PycharmProjects\ItemSubjector\tasks.py", line 12, in fetch_scientific_articles_without_main_subject
    results = (execute_sparql_query(f'''
  File "C:\Users\E5450\PycharmProjects\ItemSubjector\venv\lib\site-packages\backoff\_sync.py", line 94, in retry
    ret = target(*args, **kwargs)
  File "C:\Users\E5450\PycharmProjects\ItemSubjector\venv\lib\site-packages\wikibaseintegrator\wbi_helpers.py", line 159, in execute_sparql_query
    if urlparse(endpoint).hostname.endswith(('wikidata.org', 'wikipedia.org', 'wikimedia.org')) and user_agent is None:
AttributeError: 'NoneType' object has no attribute 'endswith'

the code is here

dpriskorn added a commit to dpriskorn/ItemSubjector that referenced this issue Sep 9, 2021
LeMyst added a commit that referenced this issue Sep 9, 2021
@LeMyst
Copy link
Owner

LeMyst commented Sep 9, 2021

Fixed in branch rewrite-wbi

@LeMyst LeMyst added bug Something isn't working v0.12.x labels Sep 9, 2021
@LeMyst LeMyst self-assigned this Sep 9, 2021
@LeMyst LeMyst closed this as completed Sep 9, 2021
@LeMyst LeMyst added this to the 0.12 milestone Mar 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v0.12.x
Projects
None yet
Development

No branches or pull requests

2 participants