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

traceback.print_last bug. #3

Open
rfyiamcool opened this issue Jan 14, 2016 · 0 comments
Open

traceback.print_last bug. #3

rfyiamcool opened this issue Jan 14, 2016 · 0 comments

Comments

@rfyiamcool
Copy link

[E 160114 13:15:37 web:1407] Uncaught exception GET /go (127.0.0.1)
HTTPServerRequest(protocol='http', host='127.0.0.1:8002', method='GET', uri='/go', version='HTTP/1.0', remote_ip='127.0.0.1', headers={'Host': '127.0.0.1:8002', 'Accept': '/', 'User-Agent': 'ApacheBench/2.3'})
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/tornado/web.py", line 1332, in _execute
result = method(_self.path_args, *_self.path_kwargs)
File "to.py", line 30, in get
self.blocking_method(self.sleep)
File "/Users/ruifengyun/thread_pool.py", line 109, in res
blocking_warning(fn)
File "/Users/ruifengyun/thread_pool.py", line 96, in blocking_warning
traceback.print_last()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/traceback.py", line 250, in print_last
raise ValueError("no last exception")
ValueError: no last exception

FIX IT.

Replace traceback.print_last() with traceback.print_exc() .

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

1 participant