mirror of
https://github.com/beetbox/beets.git
synced 2026-01-06 07:53:40 +01:00
Raise the correct error type
The incorrect error type was reintroduced in the previous merge commit.
This commit is contained in:
parent
bd48559b0a
commit
63cd799e8d
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue