mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-04-23 22:27:17 -04:00
no log: added another failsafe for provider pool update
This commit is contained in:
parent
88c267f848
commit
9f0a8d0a14
1 changed files with 8 additions and 1 deletions
|
@ -88,7 +88,14 @@ def update_pools(f):
|
|||
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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue