From 18c512893eeb2cb9d734ca1c5b3e4df5fba1a1ba Mon Sep 17 00:00:00 2001 From: discopatrick Date: Wed, 19 Apr 2017 14:10:04 +0100 Subject: [PATCH] more flake8 updates --- beets/dbcore/query.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/beets/dbcore/query.py b/beets/dbcore/query.py index cf0c13792..aa8aa4af8 100644 --- a/beets/dbcore/query.py +++ b/beets/dbcore/query.py @@ -556,13 +556,15 @@ class Period(object): ordinal = string.count('-') if ordinal >= len(cls.date_formats): # Too many components. - raise InvalidQueryArgumentTypeError(string, 'a valid datetime string') + raise InvalidQueryArgumentTypeError(string, + 'a valid datetime string') date_format = cls.date_formats[ordinal] try: date = datetime.strptime(string, date_format) except ValueError: # Parsing failed. - raise InvalidQueryArgumentTypeError(string, 'a valid datetime string') + raise InvalidQueryArgumentTypeError(string, + 'a valid datetime string') precision = cls.precisions[ordinal] return cls(date, precision)