From b736f267b5dc5f6eaffa19021858ccc77278cdaa Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Thu, 14 Sep 2023 06:39:45 -0400 Subject: [PATCH] Fixed IndexError in provider throttling function --- bazarr/app/get_providers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bazarr/app/get_providers.py b/bazarr/app/get_providers.py index 23839046b..d920cc074 100644 --- a/bazarr/app/get_providers.py +++ b/bazarr/app/get_providers.py @@ -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)