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

This commit is contained in:
Griatch 2019-06-08 17:40:29 +02:00
parent 21a5285954
commit f4f43158a8

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