Created
July 30, 2014 06:14
-
-
Save virtuald/ef69795ddafc4853d1a4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from tornado import gen | |
from tornado.ioloop import IOLoop | |
@gen.coroutine | |
def exception_gets_lost(): | |
print 'got here' | |
raise ValueError('swallowed!') | |
print 'never happens' | |
if __name__ == '__main__': | |
import logging | |
logging.basicConfig() | |
exception_gets_lost() | |
IOLoop.instance().start() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment