diff options
-rw-r--r-- | bazarr/subtitles/pool.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bazarr/subtitles/pool.py b/bazarr/subtitles/pool.py index c70e8f98c..a9908ea05 100644 --- a/bazarr/subtitles/pool.py +++ b/bazarr/subtitles/pool.py @@ -82,8 +82,10 @@ def update_pools(f): 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) |