Mercurial > p > roundup > code
diff roundup/backends/back_mysql.py @ 5918:10fb641f5152
issue2551025: try handling operational error exception in close #2
Looks like stdout reports:
(2006, '')
so try it. Also only run mysql tests w/o codecov tests to cut down on
cycle time.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sun, 13 Oct 2019 13:37:29 -0400 |
| parents | 3a6114d377f4 |
| children | d789c28db503 |
line wrap: on
line diff
--- a/roundup/backends/back_mysql.py Sun Oct 13 13:16:17 2019 -0400 +++ b/roundup/backends/back_mysql.py Sun Oct 13 13:37:29 2019 -0400 @@ -592,7 +592,7 @@ # raised for closing a closed handle. except MySQLdb.OperationalError as message: print str(message) - if str(message) != '': + if str(message) != "(2006, '')": # close connection raise except MySQLdb.ProgrammingError as message: if str(message) != 'closing a closed connection':
