Fix attr search with non-string query. Resolve #1760

This commit is contained in:
Griatch 2019-06-08 17:40:29 +02:00
parent c9b7f921bd
commit f67a68bd3b

View file

@ -405,7 +405,7 @@ class ObjectDBManager(TypedObjectManager):
if not matches:
# no matches found - check if we are dealing with N-keyword
# query - if so, strip it.
match = _MULTIMATCH_REGEX.match(searchdata)
match = _MULTIMATCH_REGEX.match(str(searchdata))
match_number = None
if match:
# strips the number