Fixed so that the PVVDB.__format method actually _checks_ the fields
for a correct datatype.
This commit is contained in:
parent
0c9e2826b8
commit
9b3c019edb
|
@ -65,6 +65,8 @@ class PVVDB:
|
||||||
continue
|
continue
|
||||||
name, value = line.strip().split(":", 1)
|
name, value = line.strip().split(":", 1)
|
||||||
value = value.split("#", 1)[0].strip()
|
value = value.split("#", 1)[0].strip()
|
||||||
|
if not value in ['scalar', 'list']:
|
||||||
|
raise PVVDBError, "%s not legal .format datatype." % value
|
||||||
fmt[name] = value
|
fmt[name] = value
|
||||||
return fmt
|
return fmt
|
||||||
|
|
||||||
|
|
Reference in New Issue