mirror of
https://github.com/morpheus65535/bazarr
synced 2025-01-03 05:25:28 +00:00
Fixed indentation issue in pool update. #2390
This commit is contained in:
parent
95474b29db
commit
4ca211191d
1 changed files with 8 additions and 6 deletions
|
@ -84,16 +84,18 @@ def update_pools(f):
|
|||
try:
|
||||
profile_id = kwargs["profile_id"]
|
||||
except KeyError:
|
||||
profile_id = args[args_spec.index("profile_id")]
|
||||
except (ValueError, IndexError):
|
||||
profile_id = None
|
||||
try:
|
||||
profile_id = args[args_spec.index("profile_id")]
|
||||
except (ValueError, IndexError):
|
||||
profile_id = None
|
||||
|
||||
try:
|
||||
media_type = kwargs["media_type"]
|
||||
except KeyError:
|
||||
media_type = args[args_spec.index("media_type")]
|
||||
except (ValueError, IndexError):
|
||||
media_type = None
|
||||
try:
|
||||
media_type = args[args_spec.index("media_type")]
|
||||
except (ValueError, IndexError):
|
||||
media_type = None
|
||||
|
||||
updated = _update_pool(media_type, profile_id)
|
||||
|
||||
|
|
Loading…
Reference in a new issue