Commits

Robert Brewer committed b55ce86

Fix for # 738 (Misspelled except statement shadows builtin KeyError exception).

  • Participants
  • Parent commits d05d4cd

Comments (0)

Files changed (1)

File 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: