Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

on_before_message #99

Closed
coreground opened this issue Apr 15, 2016 · 1 comment
Closed

on_before_message #99

coreground opened this issue Apr 15, 2016 · 1 comment

Comments

@coreground
Copy link

Decided to remove this message:
DEBUG:stomp.py:listener <main.stompworkerListener object at 0x7f42cba13650> has no method on_before_message

so I implemented a simple logging function and it exposes this:

    INFO:stomp.py:Receiver loop ended

Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(_self.__args, *_self.__kwargs)
File "/usr/local/lib/python2.7/dist-packages/stomp/transport.py", line 312, in __receiver_loop
self.process_frame(f, frame)
File "/usr/local/lib/python2.7/dist-packages/stomp/transport.py", line 166, in process_frame
(f.headers, f.body) = self.notify('before_message', f.headers, f.body)
TypeError: 'NoneType' object is not iterable

@jasonrbriggs
Copy link
Owner

jasonrbriggs commented Apr 30, 2016

Fixed in the next release. Thanks for the report.

nigelsim pushed a commit to nigelsim/stomp.py that referenced this issue Jun 2, 2016
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

No branches or pull requests

2 participants