diff options
author | morpheus65535 <[email protected]> | 2022-08-04 21:28:44 -0400 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2022-08-04 21:28:44 -0400 |
commit | b0abe81d1277bb14f877909541d56b033874f8e0 (patch) | |
tree | 9fb6e0a1199e9c7d78988afe88953333c117f676 | |
parent | 4382a05da1ad0864b74acdf911c591f3c80d6918 (diff) | |
download | bazarr-b0abe81d1277bb14f877909541d56b033874f8e0.tar.gz bazarr-b0abe81d1277bb14f877909541d56b033874f8e0.zip |
Fixed integer conversion issue. #1918v1.1.1-beta.11
-rw-r--r-- | bazarr/app/database.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/bazarr/app/database.py b/bazarr/app/database.py index 48716c621..e8898a404 100644 --- a/bazarr/app/database.py +++ b/bazarr/app/database.py @@ -436,9 +436,14 @@ def get_desired_languages(profile_id): if profile_id and profile_id != 'null': for profile in profile_id_list: profileId, name, cutoff, items, mustContain, mustNotContain, originalFormat = profile.values() - if profileId == int(profile_id): - languages = [x['language'] for x in items] - break + try: + profile_id_int = int(profile_id) + except ValueError: + continue + else: + if profileId == profile_id_int: + languages = [x['language'] for x in items] + break return languages |