Skip to content

Commit d06784f

Browse files
author
Henning Schroeder
committed
re-raising the CQLEngineException will fail on Python 3 - instead a NameError will be thrown because unicode is unknown
1 parent b3ee116 commit d06784f

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)