For now throw an exception if decoding a non-utf8 extra var
This commit is contained in:
parent
5b279c1c15
commit
c655e91436
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ def main(args):
|
||||||
|
|
||||||
extra_vars = {}
|
extra_vars = {}
|
||||||
for extra_vars_opt in options.extra_vars:
|
for extra_vars_opt in options.extra_vars:
|
||||||
extra_vars_opt = to_unicode(extra_vars_opt)
|
extra_vars_opt = to_unicode(extra_vars_opt, errors='strict')
|
||||||
if extra_vars_opt.startswith(u"@"):
|
if extra_vars_opt.startswith(u"@"):
|
||||||
# Argument is a YAML file (JSON is a subset of YAML)
|
# Argument is a YAML file (JSON is a subset of YAML)
|
||||||
data = loader.load_from_file(extra_vars_opt[1:])
|
data = loader.load_from_file(extra_vars_opt[1:])
|
||||||
|
|
Loading…
Reference in a new issue