##// END OF EJS Templates
Silence exception thrown by completer when dir() does not return a list
sunny -
Show More
@@ -60,7 +60,11 b' def dir2(obj):'
60 # Start building the attribute list via dir(), and then complete it
60 # Start building the attribute list via dir(), and then complete it
61 # with a few extra special-purpose calls.
61 # with a few extra special-purpose calls.
62
62
63 words = set(dir(obj))
63 try:
64 words = set(dir(obj))
65 except:
66 # TypeError: dir(obj) does not return a list
67 words = set()
64
68
65 if safe_hasattr(obj, '__class__'):
69 if safe_hasattr(obj, '__class__'):
66 #words.add('__class__')
70 #words.add('__class__')
General Comments 0
You need to be logged in to leave comments. Login now