no log: added another failsafe for provider pool update

This commit is contained in:
morpheus65535 2024-02-10 19:11:11 -05:00
parent 88c267f848
commit 9f0a8d0a14
1 changed files with 8 additions and 1 deletions

View File

@ -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(