Describe the bug
When trying to search for a new movie I get the fatal error: AttributeError("'NoneType' object has no attribute 'check'",) The problem started when I updated the docker images.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Search for some subtitles
Screenshots
Error: 500 Internal Server Error
Sorry, the requested URL 'https://subs.wfkclan.nl/search_missing_subtitles_movie/28' caused an error:
Internal Server Error
Exception:
AttributeError("'NoneType' object has no attribute 'check'",)
Traceback:
Traceback (most recent call last):
File "/app/bazarr/bazarr/../libs/bottle.py", line 862, in _handle
return route.call(**args)
File "/app/bazarr/bazarr/../libs/bottle.py", line 1740, in wrapper
rv = callback(*a, **ka)
File "/app/bazarr/bazarr/main.py", line 135, in wrapper
return func(*a, **ka)
File "/app/bazarr/bazarr/main.py", line 889, in search_missing_subtitles_movie
movies_download_subtitles(no)
File "/app/bazarr/bazarr/get_subtitle.py", line 527, in movies_download_subtitles
providers_list, providers_auth, str(movie[3]), movie[5], 'movie')
File "/app/bazarr/bazarr/get_subtitle.py", line 247, in download_subtitle
language_hook=None) # fixme
File "/app/bazarr/bazarr/../libs/subliminal_patch/core.py", line 734, in download_best_subtitles
subtitles = pool.download_best_subtitles(pool.list_subtitles(video, languages - video.subtitle_languages),
File "/app/bazarr/bazarr/../libs/subliminal_patch/core.py", line 453, in list_subtitles
itertools.repeat(languages, len(self.providers))):
File "/app/bazarr/bazarr/../libs/concurrent/futures/_base.py", line 581, in result_iterator
yield future.result()
File "/app/bazarr/bazarr/../libs/concurrent/futures/_base.py", line 398, in result
return self.__get_result()
File "/app/bazarr/bazarr/../libs/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/app/bazarr/bazarr/../libs/subliminal_patch/core.py", line 437, in list_subtitles_provider
provider_subtitles = super(SZAsyncProviderPool, self).list_subtitles_provider(provider, video, languages)
File "/app/bazarr/bazarr/../libs/subliminal_patch/core.py", line 140, in list_subtitles_provider
if not provider_registry[provider].check(video):
AttributeError: 'NoneType' object has no attribute 'check'
Software (please complete the following information):
Additional context
Well after filling out the entire bug report I wanted to add some debug logging. So enabled the debug log , and saved settings and afterwards the issue was solved.
So also issue solved by re saving the settings, just leaving this here so it might help someone with the same issue.
Great, fixed it for me. Is this something that could/should be fixed during a version upgrade? I feel like root-cause is now known, and workaround, but what would the solution itself be?
To be honest, we clearly know the issue, the fix but the root cause is still unknown. Something between 0.7.0.5 and 0.7.1 cause this. Unfortunately, it coincides with the merge of Sub-Zero base code into Bazarr and we changed a couple thousand of line of code during this merge so it make it quite difficult to pinpoint the root cause precisely. :-/
@halali just told me that the dev branch already contain a fix for this issue. Once we merge dev to master, this shouldn鈥檛 be an issue anymore.
Awesome, thanks for the feedback and clarification!
Most helpful comment
So also issue solved by re saving the settings, just leaving this here so it might help someone with the same issue.