Skip to content

Commit be387f0

Browse files
committed
🐛 check if data len >0 in convert_py_type..
1 parent 9b7647c commit be387f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ros_typedb/ros_typedb/typedb_interface.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ def convert_py_type_to_query_type(
414414
:return: Converted data.
415415
"""
416416
if isinstance(data, str):
417-
if data[0] != '$':
417+
if len(data) > 0 and data[0] != '$':
418418
return "'{}'".format(data)
419419
elif isinstance(data, datetime):
420420
return data.isoformat(timespec='milliseconds')

0 commit comments

Comments
 (0)