event: Fix another 'if d' test to test for None explictly
PATCH 1/1 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 <[email protected]>
--- lib/bb/event.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/bb/event.py +1 -1
@@ -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)
Signature · 1 line
2.27.0