Skip to content

Commit

Permalink
πŸ› check if data len >0 in convert_py_type..
Browse files Browse the repository at this point in the history
  • Loading branch information
Rezenders committed Mar 5, 2024
1 parent 9b7647c commit be387f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ros_typedb/ros_typedb/typedb_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ def convert_py_type_to_query_type(
:return: Converted data.
"""
if isinstance(data, str):
if data[0] != '$':
if len(data) > 0 and data[0] != '$':
return "'{}'".format(data)
elif isinstance(data, datetime):
return data.isoformat(timespec='milliseconds')
Expand Down

0 comments on commit be387f0

Please sign in to comment.