Skip to content

Instantly share code, notes, and snippets.

@virtuald
Created July 30, 2014 06:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save virtuald/ef69795ddafc4853d1a4 to your computer and use it in GitHub Desktop.
Save virtuald/ef69795ddafc4853d1a4 to your computer and use it in GitHub Desktop.
#!/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