mirror of https://github.com/cowrie/cowrie.git
update exception to 'as' syntax
This commit is contained in:
parent
f1bcd95bf2
commit
b932936597
|
@ -20,7 +20,7 @@ class ReconnectingConnectionPool(adbapi.ConnectionPool):
|
|||
try:
|
||||
return adbapi.ConnectionPool._runInteraction(
|
||||
self, interaction, *args, **kw)
|
||||
except MySQLdb.OperationalError, e:
|
||||
except MySQLdb.OperationalError as e:
|
||||
if e[0] not in (2006, 2013):
|
||||
raise
|
||||
log.msg("RCP: got error %s, retrying operation" %(e))
|
||||
|
|
Loading…
Reference in New Issue