Skip to content

Commit 7f6e05b

Browse files
committed
Python 3 preparation: use Exception instead of StandardError.
Tool-generated patch.
1 parent b99abb6 commit 7f6e05b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roundup/backends/rdbms_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ def add_class_key_required_unique_constraint(self, cn, key):
670670
on _%s(__retired__, _%s)'''%(cn, cn, key)
671671
try:
672672
self.sql(sql)
673-
except StandardError:
673+
except Exception:
674674
# XXX catch e.g.:
675675
# _sqlite.DatabaseError: index _status_key_retired_idx already exists
676676
pass

0 commit comments

Comments
 (0)