Skip to content

Commit

Permalink
Fixed IndexError in provider throttling function
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheus65535 authored Sep 14, 2023
1 parent 9cf2124 commit b736f26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bazarr/app/get_providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def provider_throttle(name, exception):
throttle_until = datetime.datetime.now() + throttle_delta

if cls_name not in VALID_COUNT_EXCEPTIONS or throttled_count(name):
if cls_name == 'ValueError' and exception.args[0].startswith('unsupported pickle protocol'):
if cls_name == 'ValueError' and isinstance(exception.args, tuple) and len(exception.args) and exception.args[0].startswith('unsupported pickle protocol'):
for fn in subliminal_cache_region.backend.all_filenames:
try:
os.remove(fn)
Expand Down

0 comments on commit b736f26

Please sign in to comment.