mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-25 05:50:21 +00:00
[11] fix KeyError
This commit is contained in:
parent
fc186e4821
commit
8ecf8fdb8e
2 changed files with 2 additions and 2 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
1.21.0-develop10
|
||||
1.21.0-develop11
|
||||
|
|
|
@ -394,7 +394,7 @@ class DataFile:
|
|||
var_name = var_key[:-7]
|
||||
con_var_value = util.parse(self.data_type, var_key, var_value, datatype="bool", default=False)
|
||||
if con_var_value:
|
||||
if (var_name not in variables or variables[var_name] is None) and (var_name not in default and default[var_name] is None):
|
||||
if (var_name not in variables or variables[var_name] is None) and (var_name not in default or default[var_name] is None):
|
||||
error_text = "- does not exist"
|
||||
elif (var_name in variables and variables[var_name] is not None) or (var_name in default and default[var_name] is not None):
|
||||
error_text = "- exists"
|
||||
|
|
Loading…
Reference in a new issue