Skip to content

Commit

Permalink
Fixed provider pool update on automatic search. #2379
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheus65535 committed Feb 9, 2024
1 parent 9058335 commit 88c267f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bazarr/subtitles/pool.py
Expand Up @@ -82,8 +82,10 @@ def decorated(*args, **kwargs):
args_spec = getfullargspec(f).args

try:
profile_id = kwargs["profile_id"]
except KeyError:
profile_id = args[args_spec.index("profile_id")]
except (IndexError, ValueError):
except (ValueError, IndexError):
profile_id = None

updated = _update_pool(args[args_spec.index("media_type")], profile_id)
Expand Down

0 comments on commit 88c267f

Please sign in to comment.