From 474dcf6843256fb5b8b3e9a720978da1fea884d0 Mon Sep 17 00:00:00 2001 From: Marcus Huewe Date: Tue, 6 May 2014 18:51:12 +0200 Subject: [PATCH] - handle ImportError of a plugin more gracefully See bnc#876538 for the details. --- osc/commandline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc/commandline.py b/osc/commandline.py index 77c8de1c..359ce10d 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -8206,7 +8206,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, NameError) as e: + except (SyntaxError, NameError, ImportError) 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: