bug fix for roslib.message: bad indentation. related to #3576
This commit is contained in:
parent
187f8206b2
commit
f5893ad2c0
|
@ -296,8 +296,7 @@ def check_type(field_name, field_type, field_val):
|
||||||
else:
|
else:
|
||||||
if type(field_val) == unicode:
|
if type(field_val) == unicode:
|
||||||
raise SerializationError('field %s is a unicode string instead of an ascii string'%field_name)
|
raise SerializationError('field %s is a unicode string instead of an ascii string'%field_name)
|
||||||
|
elif not isstring(field_val):
|
||||||
elif type(field_val) != str:
|
|
||||||
raise SerializationError('field %s must be of type str'%field_name)
|
raise SerializationError('field %s must be of type str'%field_name)
|
||||||
elif field_type == 'time':
|
elif field_type == 'time':
|
||||||
if not isinstance(field_val, Time):
|
if not isinstance(field_val, Time):
|
||||||
|
|
Loading…
Reference in New Issue