no log: added another failsafe for provider pool update

pull/2387/head
morpheus65535 9 months ago
parent 88c267f848
commit 9f0a8d0a14

@ -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…
Cancel
Save