Skip to content

dont raise an exception when Logger has no message handler#139

Merged
klen merged 2 commits into
python-mode:masterfrom
nixon:logger_no_msg_handler
Oct 22, 2012
Merged

dont raise an exception when Logger has no message handler#139
klen merged 2 commits into
python-mode:masterfrom
nixon:logger_no_msg_handler

Conversation

@nixon

@nixon nixon commented Oct 22, 2012

Copy link
Copy Markdown
Contributor

Fix for the following exception:

Find Occurrences ...
Error detected while processing function RopeFindImplementations:
line    1:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/nixon/.vim/bundle/python-mode/pylibs/ropemode/decorators.py", line
 58, in newfunc
    logger(str(traceback.format_exc()), short)
  File "/Users/nixon/.vim/bundle/python-mode/pylibs/ropemode/decorators.py", line
 13, in __call__
    self._show(message)
  File "/Users/nixon/.vim/bundle/python-mode/pylibs/ropemode/decorators.py", line
 21, in _show
    self.message(message)
TypeError: 'NoneType' object is not callable

klen added a commit that referenced this pull request Oct 22, 2012
dont raise an exception when Logger has no message handler
@klen klen merged commit b97cb76 into python-mode:master Oct 22, 2012
@klen

klen commented Oct 22, 2012

Copy link
Copy Markdown
Collaborator

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants