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

[BUG] ERROR - 'NoneType' object is not subscriptable #40

Open
StayBlue opened this issue Jan 22, 2024 · 0 comments
Open

[BUG] ERROR - 'NoneType' object is not subscriptable #40

StayBlue opened this issue Jan 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@StayBlue
Copy link

OS: Docker

Manga Tagger Version: Nightly Build

Description of the issue: Erroring while attempting to search for Manga on Anilist

Manga Series: Oshi no Ko

Screenshots (If applicable): N/A

Log File:

Logs

 2024-01-21 21:05:19,683 | MTT-3 140235229907768 | MangaTaggerLib.MangaTaggerLib | INFO - Manga_title found in exceptions.json, using manga specific configuration...
 

 2024-01-21 21:05:19,683 | MTT-6 140235226725176 | MangaTaggerLib.MangaTaggerLib | INFO - Now processing "/downloads/Oshi no Ko/Oshi no Ko -.- Ch 0001.cbz"...
 

 2024-01-21 21:05:19,683 | MTT-3 140235229907768 | MangaTaggerLib.MangaTaggerLib | INFO - Table search value is "Oshi no Ko"
 

 2024-01-21 21:05:19,684 | MTT-6 140235226725176 | MangaTaggerLib.MangaTaggerLib | INFO - Attempting to rename "Oshi no Ko -.- Ch 0001.cbz"...
 

 2024-01-21 21:05:19,684 | MTT-3 140235229907768 | MangaTaggerLib.MangaTaggerLib | INFO - Searching manga_metadata for anilist id.
 

 2024-01-21 21:05:19,685 | MTT-6 140235226725176 | MangaTaggerLib.MangaTaggerLib | INFO - Filename was successfully parsed as ['Oshi no Ko', 'Ch 0001.cbz'].
 

 2024-01-21 21:05:19,689 | MTT-6 140235226725176 | MangaTaggerLib.MangaTaggerLib | INFO - Manga_title found in exceptions.json, using manga specific configuration...
 

 2024-01-21 21:05:19,689 | MTT-6 140235226725176 | MangaTaggerLib.MangaTaggerLib | INFO - Table search value is "Oshi no Ko"
 

 2024-01-21 21:05:19,690 | MTT-3 140235229907768 | MangaTaggerLib.task_queue.QueueWorker | ERROR - 'NoneType' object is not subscriptable
 

 Traceback (most recent call last):
 

   File "/app/Manga-Tagger/MangaTaggerLib/task_queue.py", line 189, in process
 

     MangaTaggerLib.process_manga_chapter(path, uuid.uuid1())
 

   File "/app/Manga-Tagger/MangaTaggerLib/MangaTaggerLib.py", line 68, in process_manga_chapter
 

     metadata_tagger(file_path, manga_details[0], manga_details[1], manga_details[2], logging_info, manga_details[3])
 

   File "/app/Manga-Tagger/MangaTaggerLib/MangaTaggerLib.py", line 338, in metadata_tagger
 

     series_title = MetadataTable.search_series_title(manga_title)
 

   File "/app/Manga-Tagger/MangaTaggerLib/database.py", line 166, in search_series_title
 

     return cls._database.find_one({"$or": [
 

 TypeError: 'NoneType' object is not subscriptable
 

 2024-01-21 21:05:19,690 | MTT-6 140235226725176 | MangaTaggerLib.MangaTaggerLib | INFO - Searching manga_metadata for anilist id.
 

 2024-01-21 21:05:19,691 | MTT-3 140235229907768 | MangaTaggerLib.task_queue.QueueWorker | WARNING - Manga Tagger is unfamiliar with this error. Please log an issue for investigation.
 

 2024-01-21 21:05:19,694 | MTT-6 140235226725176 | MangaTaggerLib.task_queue.QueueWorker | ERROR - 'NoneType' object is not subscriptable
 

 Traceback (most recent call last):
 

   File "/app/Manga-Tagger/MangaTaggerLib/task_queue.py", line 189, in process
 

     MangaTaggerLib.process_manga_chapter(path, uuid.uuid1())
 

   File "/app/Manga-Tagger/MangaTaggerLib/MangaTaggerLib.py", line 68, in process_manga_chapter
 

     metadata_tagger(file_path, manga_details[0], manga_details[1], manga_details[2], logging_info, manga_details[3])
 

   File "/app/Manga-Tagger/MangaTaggerLib/MangaTaggerLib.py", line 338, in metadata_tagger
 

     series_title = MetadataTable.search_series_title(manga_title)
 

   File "/app/Manga-Tagger/MangaTaggerLib/database.py", line 166, in search_series_title
 

     return cls._database.find_one({"$or": [
 

 TypeError: 'NoneType' object is not subscriptable
 

 2024-01-21 21:05:19,695 | MTT-6 140235226725176 | MangaTaggerLib.task_queue.QueueWorker | WARNING - Manga Tagger is unfamiliar with this error. Please log an issue for investigation.

exceptions.json

{
        "Kaoru Hana Wa Rin To Saku": {
                "anilist_title": "The Fragrant Flower Blooms With Dignity",
                "format": "MANGA",
                "adult": false
        },
        "Oshi no Ko": {
                "anilist_id": 117195,
                "format": "MANGA",
                "adult": false
        }
}

@StayBlue StayBlue added the bug Something isn't working label Jan 22, 2024
@StayBlue StayBlue changed the title [BUG] [BUG] ERROR - 'NoneType' object is not subscriptable Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant