[damned-lies] When updating all modules, output error instead of quitting



commit b85896c4e556bda6cfc28bacfc3c5842fd53d3b8
Author: Claude Paroz <claude 2xlibre net>
Date:   Thu Dec 19 13:46:45 2013 +0100

    When updating all modules, output error instead of quitting

 stats/management/commands/update-stats.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/stats/management/commands/update-stats.py b/stats/management/commands/update-stats.py
index ab9be67..d06e85a 100644
--- a/stats/management/commands/update-stats.py
+++ b/stats/management/commands/update-stats.py
@@ -85,7 +85,7 @@ class Command(BaseCommand):
                     try:
                         branch.update_stats(options['force'])
                     except Exception as exc:
-                        raise CommandError("Error while updating stats for %s (branch '%s'): %s" % (
+                        self.stderr.write("Error while updating stats for %s (branch '%s'): %s" % (
                             mod.name, branch.name, exc))
 
         return "Update completed.\n"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]