summaryrefslogtreecommitdiff
path: root/scripts/migration/0.8.2
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2016-08-19 14:51:58 -0300
committerdrebs <drebs@leap.se>2016-08-23 18:48:27 -0300
commita601f8ddd7b8cd3a9cecbdb7fb16788becadb667 (patch)
tree59e4250e509ed96f045167fa697a65122568e241 /scripts/migration/0.8.2
parent3f74c450c37046cdd04c515e0797084a01426a80 (diff)
[pkg] log errors and continue with next db in couch schema migration script
Diffstat (limited to 'scripts/migration/0.8.2')
-rw-r--r--scripts/migration/0.8.2/migrate_couch_schema/__init__.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/migration/0.8.2/migrate_couch_schema/__init__.py b/scripts/migration/0.8.2/migrate_couch_schema/__init__.py
index c3eb9c3d..c9ec4910 100644
--- a/scripts/migration/0.8.2/migrate_couch_schema/__init__.py
+++ b/scripts/migration/0.8.2/migrate_couch_schema/__init__.py
@@ -77,8 +77,12 @@ def migrate(args, target_version):
logger.warning("skipping not migrateable user db: %s" % dbname)
continue
logger.info("starting migration of user db: %s" % dbname)
- _migrate_user_db(db, args.do_migrate)
- logger.info("finished migration of user db: %s" % dbname)
+ try:
+ _migrate_user_db(db, args.do_migrate)
+ logger.info("finished migration of user db: %s" % dbname)
+ except:
+ logger.exception('Error migrating user db: %s' % dbname)
+ logger.error('Continuing with next database.')
logger.info('finished couch schema migration to %s' % target_version)