Skip to content

Commit ddf9c78

Browse files
committed
Qualify except branch around namedtuple construction.
1 parent ebf5bf8 commit ddf9c78

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cassandra/query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def named_tuple_factory(colnames, rows):
102102
clean_column_names = map(_clean_column_name, colnames)
103103
try:
104104
Row = namedtuple('Row', clean_column_names)
105-
except:
105+
except Exception:
106106
log.warn("Failed creating named tuple for results with column names %s (cleaned: %s) (see Python 'namedtuple' documentation for details on name rules). "
107107
"Results will be returned with positional names. "
108108
"Avoid this by choosing different names, using SELECT \"<col name>\" AS aliases, "

0 commit comments

Comments
 (0)