188 if word[:n] == attr and hasattr(thisobject, word): |
188 if word[:n] == attr and hasattr(thisobject, word): |
189 val = getattr(thisobject, word) |
189 val = getattr(thisobject, word) |
190 word = self._callable_postfix( |
190 word = self._callable_postfix( |
191 val, "{0}.{1}".format(expr, word)) |
191 val, "{0}.{1}".format(expr, word)) |
192 matches.append(word) |
192 matches.append(word) |
193 except: |
193 except Exception: |
194 # some badly behaved objects pollute dir() with non-strings, |
194 # some badly behaved objects pollute dir() with non-strings, |
195 # which cause the completion to fail. This way we skip the |
195 # which cause the completion to fail. This way we skip the |
196 # bad entries and can still continue processing the others. |
196 # bad entries and can still continue processing the others. |
197 pass |
197 pass |
198 return matches |
198 return matches |