Skip to content

Commit 4105990

Browse files
DvirDukhanswilly22
authored andcommitted
quote_string handles empty string (#47)
1 parent af0c3c6 commit 4105990

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

redisgraph/util.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ def quote_string(v):
1515
"""
1616
if not isinstance(v, str):
1717
return v
18+
if len(v) == 0:
19+
return '""'
1820

1921
if v[0] != '"':
2022
v = '"' + v

0 commit comments

Comments
 (0)