Fix exception alias syntax

This commit is contained in:
Christopher Grebs 2014-01-05 19:06:12 -08:00 committed by Ben Firshman
commit 3c91315426
2 changed files with 6 additions and 6 deletions

View file

@ -85,7 +85,7 @@ class SocketClient:
stream.flush()
else:
break
except Exception, e:
except Exception as e:
log.debug(e)
def send_ws(self, socket, stream):
@ -101,7 +101,7 @@ class SocketClient:
else:
try:
socket.send(chunk)
except Exception, e:
except Exception as e:
if hasattr(e, 'errno') and e.errno == errno.EPIPE:
break
else: