mirror of
https://github.com/beetbox/beets.git
synced 2026-12-01 00:11:21 -06:00
Raise the correct error type
The incorrect error type was reintroduced in the previous merge commit.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user