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

'sys' is not defined in listener.py #61

Closed
sjmf opened this issue Nov 2, 2015 · 1 comment
Closed

'sys' is not defined in listener.py #61

sjmf opened this issue Nov 2, 2015 · 1 comment

Comments

@sjmf
Copy link

sjmf commented Nov 2, 2015

Using latest library version, on line 231 there is a call to sys.exc_info(), but sys has not been imported.

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/listener.py", line 231, in
 __heartbeat_loop                                                              
    _, e, _ = sys.exc_info()                                                   
NameError: global name 'sys' is not defined

Solution: add import sys at the top?

@jasonrbriggs
Copy link
Owner

Fixed in 4.1.8. Thanks for the report.

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