Update validate value exception message

This commit is contained in:
JonnyWong16 2021-03-11 13:09:11 -08:00
parent 95c47c67c7
commit b3dd52680e
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -762,7 +762,7 @@ class LibrarySection(PlexObject):
if matchValue in {f.key.lower(), f.title.lower()}), value)
results.append(str(value))
except ValueError:
raise BadRequest('Invalid filter value "%s" for filter field "%s", value should be type %s'
raise BadRequest('Invalid value "%s" for filter field "%s", value should be type %s'
% (value, filterField.key, fieldType.type)) from None
return results