Remove print statments from this migration.
The reason for wanting to give extra information to the user (this is a very special case migration) is good, but we don't have a nice "official" way to capture and present that information during tests, so removing this.
This commit is contained in:
parent
a64abbb10a
commit
78fd5581a9
@ -181,10 +181,9 @@ def fix_CollectionItem_v0_constraint(db_conn):
|
||||
|
||||
try:
|
||||
constraint.create()
|
||||
except ProgrammingError as exc:
|
||||
print "***", repr(exc)
|
||||
print "***", repr(exc.statement)
|
||||
print "***", repr(exc.params)
|
||||
print "***", repr(exc.orig)
|
||||
print "*** Ignoring it, you probably have a fresh install from a recent git."
|
||||
except ProgrammingError:
|
||||
# User probably has an install that was run since the
|
||||
# collection tables were added, so we don't need to run this migration.
|
||||
pass
|
||||
|
||||
db_conn.commit()
|
||||
|
Loading…
x
Reference in New Issue
Block a user