Comment 4 for bug 1236657

Revision history for this message
Stefan Pappalardo (sjuk) wrote :

Thank you. The same issue on my box.

$ /usr/share/mythtv/metadata/Movie/tmdb3.py -l en -a US -D 99151
Traceback (most recent call last):
  File "/usr/share/mythtv/metadata/Movie/tmdb3.py", line 278, in <module> main()
  File "/usr/share/mythtv/metadata/Movie/tmdb3.py", line 272, in main buildSingle(args[0], opts)
  File "/usr/share/mythtv/metadata/Movie/tmdb3.py", line 50, in buildSingle if getattr(movie, j):
  File "/usr/lib/python2.7/dist-packages/MythTV/tmdb3/util.py", line 143, in __get__ self.poller.__get__(inst, owner)()
  File "/usr/lib/python2.7/dist-packages/MythTV/tmdb3/util.py", line 67, in __call__ if not self.apply(req.readJSON(), False):
  File "/usr/lib/python2.7/dist-packages/MythTV/tmdb3/cache.py", line 111, in __call__ data = self.func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/MythTV/tmdb3/request.py", line 119, in readJSON handle_status(data, url)
  File "/usr/lib/python2.7/dist-packages/MythTV/tmdb3/request.py", line 158, in handle_status raise status
MythTV.tmdb3.tmdb_exceptions.TMDBRequestInvalid: Invalid id - The pre-requisite id is invalid or not found.

In my opinion tmdb3.py has to expect that a search can fail.
Perhaps there is something wrong with the handle of failed searches?!?