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

sonarr.py TypeError when logging #8

Open
oilervoss opened this issue Nov 25, 2022 · 2 comments
Open

sonarr.py TypeError when logging #8

oilervoss opened this issue Nov 25, 2022 · 2 comments

Comments

@oilervoss
Copy link
Contributor

oilervoss commented Nov 25, 2022

For the fork https://github.com/LiamAird/Elsewherr/tree/sonarr , being future possible commit here:

It worked for a couple of times and then the sonarr.py gives and exception:

Traceback (most recent call last):
  File "/usr/src/myapp/sonarr.py", line 73, in <module>
    logging.info("show IMDB ID: "+show["imdbId"])
KeyError: 'imdbId'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/myapp/sonarr.py", line 79, in <module>
    logging.info("Getting the IMDB failed: " + KeyError)
TypeError: can only concatenate str (not "type") to str
@oilervoss
Copy link
Contributor Author

oilervoss commented Nov 26, 2022

I have two instances for each Radarr and Sonarr, one for HD, another for 4k. The issue only happens when running sonarr.py on my larger library (HD). I have an orphan imdb series there (https://thetvdb.com/series/follow-the-food), i.e., there is tvdb entry but no imdb.

@Tharic99
Copy link

Tharic99 commented Jan 7, 2023

So I've seen similar errors on the Radarr side where there is an orphaned tmdb record. It was for an untitled Pirates of the Caribbean reboot. It generated a similar KeyError from python.

Looks like some kind of error checking that the movie/series exists on tmdb/imdb neds to be improved to resolve this. The workaround for me at least on the Radarr side was to remove the orphaned record.

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

2 participants