Skip to content

Commit

Permalink
- _load_plugins: handle NameError more gracefully
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-h committed Jan 10, 2014
1 parent 9a8679a commit edd199a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osc/commandline.py
Expand Up @@ -8136,7 +8136,7 @@ def _load_plugins(self):
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:
Expand Down

0 comments on commit edd199a

Please sign in to comment.