From c31dfcb767f5f77db68b5309f7c1c22ae2cb07f8 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Sun, 2 Feb 2014 15:35:19 +0000 Subject: [PATCH] 7429: Fix bug when an empty string is used as custom type --- src/AutoComp.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/AutoComp.py b/src/AutoComp.py index d85257cae..e1df7cbe5 100644 --- a/src/AutoComp.py +++ b/src/AutoComp.py @@ -271,8 +271,7 @@ class StandardCustomSelector(object): instance. """ if isinstance(event_type, basestring): - if event_type: - return (self.custom_key, event_type) + return (self.custom_key, event_type) elif isinstance(event_type, tuple): if event_type[1]: return (event_type[0], event_type[1])