From 63cd799e8d4e7ecb43878562d4ff2007931b6282 Mon Sep 17 00:00:00 2001 From: discopatrick Date: Sat, 22 Apr 2017 00:56:52 +0100 Subject: [PATCH] Raise the correct error type The incorrect error type was reintroduced in the previous merge commit. --- beets/dbcore/query.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beets/dbcore/query.py b/beets/dbcore/query.py index c1150c9c4..558a434bc 100644 --- a/beets/dbcore/query.py +++ b/beets/dbcore/query.py @@ -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)