Source

CherryPy / cherrypy / _cplogging.py

Diff from to

cherrypy/_cplogging.py

         """Flushes the stream."""
         try:
             stream = cherrypy.request.wsgi_environ.get('wsgi.errors')
-        except AttributeError, KeyError:
+        except (AttributeError, KeyError):
             pass
         else:
             stream.flush()
         """Emit a record."""
         try:
             stream = cherrypy.request.wsgi_environ.get('wsgi.errors')
-        except AttributeError, KeyError:
+        except (AttributeError, KeyError):
             pass
         else:
             try: