diff options
author | drebs <drebs@leap.se> | 2016-08-19 14:51:58 -0300 |
---|---|---|
committer | drebs <drebs@leap.se> | 2016-08-23 18:48:27 -0300 |
commit | a601f8ddd7b8cd3a9cecbdb7fb16788becadb667 (patch) | |
tree | 59e4250e509ed96f045167fa697a65122568e241 | |
parent | 3f74c450c37046cdd04c515e0797084a01426a80 (diff) |
[pkg] log errors and continue with next db in couch schema migration script
-rw-r--r-- | scripts/migration/0.8.2/migrate_couch_schema/__init__.py | 8 |
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) |