]> scripts.mit.edu Git - wizard.git/commitdiff
Downgrade AlreadyMigratedError to result in an informational notice.
authorEdward Z. Yang <edwardzyang@thewritingpot.com>
Wed, 17 Jun 2009 06:29:49 +0000 (02:29 -0400)
committerEdward Z. Yang <edwardzyang@thewritingpot.com>
Wed, 17 Jun 2009 06:29:49 +0000 (02:29 -0400)
Signed-off-by: Edward Z. Yang <edwardzyang@thewritingpot.com>
lib/wizard/command/massmigrate.py

index f80c0a7905f29980999dfee3694f4190f2733858..b751194c0045570502e7434eab938440b53b4f70 100644 (file)
@@ -50,6 +50,8 @@ output going to stdout/stderr."""
         logger.info("$ wizard migrate " + " ".join(sub_argv))
         try:
             migrate.migrate(sub_argv, global_options, logger)
+        except migrate.AlreadyMigratedError as e:
+            logger.info("Skipped already migrated %s" % d.location)
         except UserException as e:
             name = e.__class__.__name__
             if name not in errors: errors[name] = []