From edd199af3beed5a1e814707a80dac29951e506ec Mon Sep 17 00:00:00 2001 From: Marcus Huewe Date: Fri, 10 Jan 2014 15:58:33 +0100 Subject: [PATCH] - _load_plugins: handle NameError more gracefully --- osc/commandline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc/commandline.py b/osc/commandline.py index c3b0be9d..0a90e273 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -8136,7 +8136,7 @@ Please submit there instead, or use --nodevelproject to force direct submission. if (inspect.isfunction(data) and inspect.getmodule(data) == mod or inspect.ismodule(data)): setattr(self.__class__, name, data) - except SyntaxError as e: + except (SyntaxError, NameError) as e: if (os.environ.get('OSC_PLUGIN_FAIL_IGNORE')): print("%s: %s\n" % (os.path.join(plugin_dir, extfile), e), file=sys.stderr) else: