From 308746a7de4038a7d1363e89188bc9d452b591b5 Mon Sep 17 00:00:00 2001 From: Casey Diemel Date: Sun, 13 Oct 2019 13:54:22 -0400 Subject: [PATCH] removed plugin.on() return value as is not needed Signed-off-by: Casey Diemel --- pwnagotchi/plugins/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pwnagotchi/plugins/__init__.py b/pwnagotchi/plugins/__init__.py index 7faa5531..6dd7b648 100644 --- a/pwnagotchi/plugins/__init__.py +++ b/pwnagotchi/plugins/__init__.py @@ -18,9 +18,7 @@ def on(event_name, *args, **kwargs): if cb_name in plugin.__dict__: # print("calling %s %s(%s)" %(cb_name, args, kwargs)) try: - ret_val = plugin.__dict__[cb_name](*args, **kwargs) - if ret_val is not None: - return ret_val + plugin.__dict__[cb_name](*args, **kwargs) except Exception as e: logging.error("error while running %s.%s : %s" % (plugin_name, cb_name, e))