Skip to content

Commit 556638c

Browse files
committed
Merge branch 'master' into oss-next
2 parents f088353 + 83066e2 commit 556638c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ Other
8080
* Write documentation examples for DSE 2.0 features (PYTHON-732)
8181
* DSE_V1 protocol should not include all of protocol v5 (PYTHON-694)
8282

83+
Bug Fixes
84+
---------
85+
* re-raising the CQLEngineException will fail on Python 3 (PYTHON-1166)
86+
8387
3.20.1
8488
======
8589
November 6, 2019

cassandra/cqlengine/management.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def _sync_table(model, connection=None):
232232
except CQLEngineException as ex:
233233
# 1.2 doesn't return cf names, so we have to examine the exception
234234
# and ignore if it says the column family already exists
235-
if "Cannot add already existing column family" not in unicode(ex):
235+
if "Cannot add already existing column family" not in six.text_type(ex):
236236
raise
237237
else:
238238
log.debug(format_log_context("sync_table checking existing table %s", keyspace=ks_name, connection=connection), cf_name)

0 commit comments

Comments
 (0)