Don't use Python 2.6 specific syntax (r7123)

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7124 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2009-04-22 08:43:36 +00:00 committed by Git SVN Gateway
parent 2dc1bcfd12
commit 61d0fd23d0
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ class BotCommands:
l = ["\x02%s\x02 [%i/%i]" % (g.description, g.currentPlayers, g.maxPlayers) for g in games]
message += ", ".join(l)
write("%s: %s" % (nick, message))
except (socket.error, socket.herror, socket.gaierror, socket.timeout) as e:
except (socket.error, socket.herror, socket.gaierror, socket.timeout), e:
write("%s: Failed to communicate with the lobby (%s:%d): %s" % (nick, self.bot.lobby.host, self.bot.lobby.port, e))
# TODO: if message.startswith("show") # join a game and show information about it