From 9a985bebecb079af4bcaf3dfa988dfd0c7b7f226 Mon Sep 17 00:00:00 2001 From: Greg Turner Date: Sun, 4 Dec 2016 17:32:09 +1100 Subject: [PATCH] Fix indexerror on tests --- icekit/utils/search/facets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/icekit/utils/search/facets.py b/icekit/utils/search/facets.py index eac638ba..bd141a5a 100644 --- a/icekit/utils/search/facets.py +++ b/icekit/utils/search/facets.py @@ -124,7 +124,7 @@ def get_value(self): try: return self.get_applicable_values()[0] except IndexError: - if not self.select_many: + if not self.select_many and self.get_values(): return self.get_values()[0]