diff --git a/osc/commandline.py b/osc/commandline.py index 53b07443..e049cd14 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -7840,7 +7840,7 @@ Please submit there instead, or use --nodevelproject to force direct submission. if not extfile.endswith('.py'): continue try: - exec open(os.path.join(plugin_dir, extfile)) + exec(open(os.path.join(plugin_dir, extfile))) except SyntaxError as e: if (os.environ.get('OSC_PLUGIN_FAIL_IGNORE')): print >>sys.stderr, "%s: %s\n" % (plugin_dir, e)