Catching bottle server errors
问题 I am trying to get my bottle server so that when one person in a game logs out, everyone can immediately see it. As I am using long polling, there is a request open with all the users. The bit I am having trouble with is catching the exception that is thrown when the user leaves the page from the long polling that can no longer connect to the page. The error message is here. Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/gevent/pywsgi.py", line 438, in handle_one