Skip to content

Commit

Permalink
Catch any exceptions when populating the autocomplete info.
Browse files Browse the repository at this point in the history
Refs #9045
  • Loading branch information
martyngigg authored and RussellTaylor committed Feb 25, 2014
1 parent 8feccc5 commit 8dcdbef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Code/Mantid/MantidPlot/mantidplotrc.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ def _ScopeInspector_GetFunctionAttributes(definitions):
obj = obj._getHeldObject()
attrs = dir(obj)
for att in attrs:
fattr = getattr(obj,att)
try:
fattr = getattr(obj,att)
except Exception:
continue # not much we do if not even calling it causes an exception
if att.startswith('_'):
continue
if inspect.isfunction(fattr) or inspect.ismethod(fattr) or \
Expand Down

0 comments on commit 8dcdbef

Please sign in to comment.