Skip to content

Commit

Permalink
Python3-compatible syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
strictlymike committed Nov 15, 2016
1 parent 7e8c8d5 commit c0a5699
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion irc/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def _send(self, msg):
log.debug('to %s: %s', self.client_ident(), msg)
try:
self.request.send(msg.encode('utf-8') + b'\r\n')
except socket.error, e:
except socket.error as e:
if e.errno == errno.EPIPE:
raise self.Disconnect()
else:
Expand Down

0 comments on commit c0a5699

Please sign in to comment.