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

TypeError in Transport #29

Closed
seepa opened this issue Mar 23, 2015 · 1 comment
Closed

TypeError in Transport #29

seepa opened this issue Mar 23, 2015 · 1 comment

Comments

@seepa
Copy link

seepa commented Mar 23, 2015

Hi, I've spotted a small bug:
In transport.py line 174 len(f.body) is called, but f.body can be None which leads to an exception:

Traceback (most recent call last):
  File "/usr/lib/python3.4/threading.py", line 920, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.4/threading.py", line 868, in run
    self._target(*self._args, **self._kwargs)
  File "venv/lib/python3.4/site-packages/stomp/transport.py", line 300, in __receiver_loop
    self.process_frame(f, frame)
  File "venv/lib/python3.4/site-packages/stomp/transport.py", line 174, in process_frame
    log.info("Received frame: %r, headers=%r, len(body)=%r", f.cmd, f.headers, len(f.body))
TypeError: object of type 'NoneType' has no len()

best regards,
Patrick

@jasonrbriggs
Copy link
Owner

Fixed in 4.0.15

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