From ecdfe424efae1f3f445962bec0b8f50198725e65 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sat, 4 Jun 2011 21:33:09 +0200 Subject: [PATCH] Return results only when result is not None --- couchpotato/core/event.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/event.py b/couchpotato/core/event.py index 7765bb8b..231c17e1 100644 --- a/couchpotato/core/event.py +++ b/couchpotato/core/event.py @@ -44,7 +44,7 @@ def fireEvent(name, *args, **kwargs): if single and not merge: results = None - if result[0][0] == True and result[0][1]: + if result[0][0] is True and result[0][1] is not None: results = result[0][1] elif result[0][1]: errorHandler(result[0][1])