|
|
|
|
24
|
return (value, None)
|
24
|
return (value, None)
|
25
|
if isinstance(value, dict):
|
25
|
if isinstance(value, dict):
|
26
|
for val in value.values():
|
26
|
for val in value.values():
|
27
|
- if not isinstance(val, str):
|
|
|
|
|
27
|
+ if not(isinstance(val, str) or val is None) :
|
28
|
return (None, ValueError("Expected str as dict values. Bad dict : '%s'" % value))
|
28
|
return (None, ValueError("Expected str as dict values. Bad dict : '%s'" % value))
|
29
|
return (value, None)
|
29
|
return (value, None)
|
30
|
if isinstance(value, str):
|
30
|
if isinstance(value, str):
|