Skip to content

Commit

Permalink
no log: added another failsafe for provider pool update
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheus65535 committed Feb 11, 2024
1 parent 88c267f commit 9f0a8d0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion bazarr/subtitles/pool.py
Expand Up @@ -88,7 +88,14 @@ def decorated(*args, **kwargs):
except (ValueError, IndexError):
profile_id = None

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

updated = _update_pool(media_type, profile_id)

if updated:
logging.debug(
Expand Down

0 comments on commit 9f0a8d0

Please sign in to comment.