Fikset en feil i lesing av dictionary-verdier i fileformat.py.
Den håndterte ikke tomme verdier. Nå gjør den det.
This commit is contained in:
parent
7716c61965
commit
b85ad52ed4
|
@ -64,6 +64,8 @@ def read_field_value_int(val):
|
||||||
|
|
||||||
def read_field_value_dict(val):
|
def read_field_value_dict(val):
|
||||||
d = {}
|
d = {}
|
||||||
|
if val.strip() == '':
|
||||||
|
return d
|
||||||
for line in val.strip().split('\n'):
|
for line in val.strip().split('\n'):
|
||||||
key, value = line.strip().split(' ', 1)
|
key, value = line.strip().split(' ', 1)
|
||||||
if key in d:
|
if key in d:
|
||||||
|
|
Reference in New Issue