Skip to content

[BUG] kitsu import #464

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

Closed
DarkNio88 opened this issue May 6, 2025 · 2 comments
Closed

[BUG] kitsu import #464

DarkNio88 opened this issue May 6, 2025 · 2 comments
Labels
bug Something isn't working fixed in dev Fixed in the development branch

Comments

@DarkNio88
Copy link

Describe the bug
not work

To Reproduce
import kitsu

Error logs
[2025-05-06 17:02:38 +0000] [36] [INFO] Importing anime from Kitsu
[2025-05-06 17:02:43 +0000] [36] [ERROR] Task Import from Kitsu[06d0ccd5-8530-4c87-82fe-38187cbcb581] raised unexpected: TypeError("'NoneType' object is not subscriptable")
Traceback (most recent call last):
File "/yamtrack/integrations/imports/kitsu.py", line 115, in import_media
instance = process_entry(
^^^^^^^^^^^^^^
File "/yamtrack/integrations/imports/kitsu.py", line 153, in process_entry
kitsu_id = entry["relationships"][media_type]["data"]["id"]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/celery/app/trace.py", line 453, in trace_task
R = retval = fun(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/celery/app/trace.py", line 736, in protected_call
return self.run(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/yamtrack/integrations/tasks.py", line 114, in import_kitsu
num_anime_imported, num_manga_imported, warning_message = kitsu.importer(
^^^^^^^^^^^^^^^
File "/yamtrack/integrations/imports/kitsu.py", line 51, in importer
num_anime_imported, anime_warnings = import_media(
^^^^^^^^^^^^^
File "/yamtrack/integrations/imports/kitsu.py", line 126, in import_media
kitsu_id = entry["relationships"][media_type]["data"]["id"]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
TypeError: 'NoneType' object is not subscriptable

Yamtrack version: latest git

@DarkNio88 DarkNio88 added the bug Something isn't working label May 6, 2025
@FuzzyGrim
Copy link
Owner

Would you mind sharing your Kitsu username for easier debugging? You can send it to me at [email protected] if you prefer.

@DarkNio88
Copy link
Author

DarkNio

@FuzzyGrim FuzzyGrim added the fixed in dev Fixed in the development branch label May 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed in dev Fixed in the development branch
Projects
None yet
Development

No branches or pull requests

2 participants