Raise the correct error type

The incorrect error type was reintroduced in the previous merge commit.
This commit is contained in:
discopatrick 2017-04-22 00:56:52 +01:00
parent bd48559b0a
commit 63cd799e8d

View file

@ -562,7 +562,7 @@ class Period(object):
# Parsing failed.
pass
if date is None:
raise InvalidQueryArgumentTypeError(string,
raise InvalidQueryArgumentValueError(string,
'a valid datetime string')
precision = cls.precisions[ordinal]
return cls(date, precision)