Return results only when result is not None

This commit is contained in:
Ruud
2011-06-04 21:33:09 +02:00
parent b985d07ac2
commit ecdfe424ef
+1 -1
View File
@@ -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])