Skip to content

Commit cbc6adb

Browse files
authored
Merge pull request datastax#1054 from hajs/master
re-raising the CQLEngineException will fail on Python 3
2 parents 5f13adf + d06784f commit cbc6adb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)