From 928b8df08c4445034f995aca2b0cb8210d399104 Mon Sep 17 00:00:00 2001 From: Thomas Adamcik Date: Wed, 8 Apr 2015 21:10:21 +0200 Subject: [PATCH] core: Explain why we let LookupError through for search --- mopidy/core/library.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mopidy/core/library.py b/mopidy/core/library.py index 35a43501..b226a378 100644 --- a/mopidy/core/library.py +++ b/mopidy/core/library.py @@ -297,6 +297,9 @@ class LibraryController(object): '%s does not implement library.search() with "exact" ' 'support. Please upgrade it.', backend_name) except LookupError: + # Some of our tests check for this to catch bad queries. This + # is silly and should be replaced with query validation before + # passing it to the backends. raise except Exception: logger.exception('%s backend caused an exception.',