1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 17:26:15 +02:00

- _load_plugins: handle NameError more gracefully

This commit is contained in:
Marcus Huewe 2014-01-10 15:58:33 +01:00
parent 9a8679a21e
commit edd199af3b

View File

@ -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: