diff options
author | Marcin Piwowarczyk <m.piwowarczy@samsung.com> | 2018-06-06 16:06:05 -0400 |
---|---|---|
committer | Marcin Piwowarczyk <m.piwowarczy@samsung.com> | 2018-09-18 17:19:20 +0000 |
commit | ad848298821974a5b7acf7120778cf3e8b1fe023 (patch) | |
tree | acd0ed8215e5de55681bdae8f10ff954c79d18ac /trove/guestagent/datastore/mysql_common/service.py | |
parent | 7e4e25f12feba32202e082d2f8b84a23cb9ae3af (diff) | |
download | trove-ad848298821974a5b7acf7120778cf3e8b1fe023.tar.gz |
fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.
We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.
We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.
Change-Id: I9ee34642c700d1e6ba9c2f3891b7fa1f7f7e1e1d
Depends-On: I8989fd4798e80eae27408017e1543819a68b4ab1
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Signed-off-by: Marcin Piwowarczyk <m.piwowarczy@samsung.com>
Co-Authored-By: Doug Hellmann <doug@doughellmann.com>
Diffstat (limited to 'trove/guestagent/datastore/mysql_common/service.py')
-rw-r--r-- | trove/guestagent/datastore/mysql_common/service.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trove/guestagent/datastore/mysql_common/service.py b/trove/guestagent/datastore/mysql_common/service.py index ec27d606..28931b03 100644 --- a/trove/guestagent/datastore/mysql_common/service.py +++ b/trove/guestagent/datastore/mysql_common/service.py @@ -573,7 +573,7 @@ class BaseKeepAliveConnection(interfaces.PoolListener): # way than MySQL and PXC, which manifests itself as # an invalid packet sequence. Handle it as well. except pymysql_err.InternalError as ex: - if "Packet sequence number wrong" in ex.message: + if "Packet sequence number wrong" in str(ex): raise exc.DisconnectionError() else: raise |