From e629e8ba1586f443b2b4efa635ec3f808ebedddb Mon Sep 17 00:00:00 2001 From: Lou Marvin Caraig Date: Wed, 23 Sep 2015 07:52:29 +0200 Subject: [PATCH] Fixed error raised in Filter class for invalid type --- pydruid/utils/filters.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pydruid/utils/filters.py b/pydruid/utils/filters.py index 5e848e49..9ee5677f 100644 --- a/pydruid/utils/filters.py +++ b/pydruid/utils/filters.py @@ -39,7 +39,7 @@ def __init__(self, **args): self.filter = {"filter": {"type": "not", "field": args["field"]}} else: - raise NotImplemented( + raise NotImplementedError( 'Filter type: {0} does not exist'.format(args['type'])) def show(self): @@ -67,4 +67,3 @@ def __init__(self, dim): def __eq__(self, other): return Filter(dimension=self.dimension, value=other) -