Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion terminusdb_client/woqlquery/woql_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -1257,7 +1257,7 @@ def substr(self, string, length, substring, before=0, after=0):
if not substring:
substring = length
length = len(substring) + before
if not string or not substring or type(substring) != type:
if not string or not substring or type(substring) != str:
raise ValueError(
"Substr - the first and last parameters must be strings representing the full and substring variables / literals"
)
Expand Down