Commits

Diego Búrigo Zacarão committed ee7a6ca

minor: Ops! Deleted by mistake from the previous rebase

  • Participants
  • Parent commits 6b5f238

Comments (0)

Files changed (1)

File transifex/projects/management/commands/txstatsrefresh.py

 from exceptions import Exception
 import logging
 import os
+import traceback
 from optparse import make_option, OptionParser
 from django.core.exceptions import ObjectDoesNotExist
 from django.core.management.base import (LabelCommand, CommandError)
         """Override default method to make it work without arguments."""
         _continue = options.get('continue')
         skip = options.get('skip')
+        verbose = options.get('verbose')
         if _continue and not os.access(os.path.dirname(__file__), os.W_OK):
             raise CommandError("Insufficient rights to resume file.")
             
                         print("Failed refreshing %s." % comp)
                         pass
                     else:
+                        if verbose:
+                            print traceback.format_exc()
                         raise CommandError("Error refreshing stats for %s. "
                             "Use --skip to ignore broken ones)." % comp)
                 if _continue and not errors.has_key(comp):