Skip to content
Snippets Groups Projects
Commit f2a0f4a4 authored by Dariusz Kędzierski's avatar Dariusz Kędzierski
Browse files

Guard escape_characters with assert

parent dbef3168
No related branches found
No related tags found
2 merge requests!456Release candidate v1 24,!364Follower and following names validation and type check
......@@ -68,6 +68,7 @@ def to_nai(value):
def escape_characters(text):
""" Escape special charactes """
assert isinstance(text, str), "Expected string got: {}".format(type(text))
if len(text.strip()) == 0:
return "'" + text + "'"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment