diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2012-12-10 16:14:28 -0600 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2012-12-10 16:17:24 -0600 |
commit | 78fd5581a9fec142a1236eb90508724281f7f5ba (patch) | |
tree | 27bf7582dd61cfd8e0b3d1bbd7bc106a3417d98a | |
parent | a64abbb10abf025d10dbc1a49979c7c8f4d74895 (diff) | |
download | mediagoblin-78fd5581a9fec142a1236eb90508724281f7f5ba.tar.lz mediagoblin-78fd5581a9fec142a1236eb90508724281f7f5ba.tar.xz mediagoblin-78fd5581a9fec142a1236eb90508724281f7f5ba.zip |
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.
-rw-r--r-- | mediagoblin/db/sql/migrations.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/mediagoblin/db/sql/migrations.py b/mediagoblin/db/sql/migrations.py index b4c91eee..99448bfa 100644 --- a/mediagoblin/db/sql/migrations.py +++ b/mediagoblin/db/sql/migrations.py @@ -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() |