aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-03-11 21:37:53 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-03-11 21:38:05 +0000
commitc3f6fee42bfa23f23f167cb29f0cfa05ac2fa197 (patch)
treeceb0f8881552f9764c7b71718cd6e53c7dd5432f
parent9298d08b7dcf9d79f54536f87686d65c4ad7deb9 (diff)
downloadbitbake-c3f6fee42bfa23f23f167cb29f0cfa05ac2fa197.tar.gz
event: Fix another 'if d' test to test for None explictly
This should have been fixed in the previous patch, well spotted Chris! Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/event.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/event.py b/lib/bb/event.py
index 22171a9ca..31e7c2a4d 100644
--- a/lib/bb/event.py
+++ b/lib/bb/event.py
@@ -118,7 +118,7 @@ def fire_class_handlers(event, d):
if _eventfilter:
if not _eventfilter(name, handler, event, d):
continue
- if d and not name in (d.getVar("__BBHANDLERS_MC") or set()):
+ if d is not None and not name in (d.getVar("__BBHANDLERS_MC") or set()):
continue
execute_handler(name, handler, event, d)