summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2024-02-11 23:21:31 -0500
committermorpheus65535 <[email protected]>2024-02-11 23:21:31 -0500
commit4ca211191d6fe546abc084bbad4b8b5d327e733b (patch)
tree32924770b7e650dd54d48a2fa19934b3334160b2
parent95474b29db452a7dad055af6d89a671ff50ae2d4 (diff)
downloadbazarr-1.4.2-beta.4.tar.gz
bazarr-1.4.2-beta.4.zip
Fixed indentation issue in pool update. #2390v1.4.2-beta.4
-rw-r--r--bazarr/subtitles/pool.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/bazarr/subtitles/pool.py b/bazarr/subtitles/pool.py
index 306898772..8742e3c4c 100644
--- a/bazarr/subtitles/pool.py
+++ b/bazarr/subtitles/pool.py
@@ -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)