Forráskód Böngészése

Tests passing on Py2.6

Ask Solem 12 éve
szülő
commit
68e365e81a
2 módosított fájl, 2 hozzáadás és 2 törlés
  1. 1 1
      celery/exceptions.py
  2. 1 1
      celery/worker/control.py

+ 1 - 1
celery/exceptions.py

@@ -78,7 +78,7 @@ class RetryTaskError(Exception):
         if self.message:
             return self.message
         if self.excs:
-            return 'Retry {0}: {!r}'.format(self.humanize(), self.excs)
+            return 'Retry {0}: {1!r}'.format(self.humanize(), self.excs)
         return 'Retry {0}'.format(self.humanize())
 
     def __reduce__(self):

+ 1 - 1
celery/worker/control.py

@@ -99,7 +99,7 @@ def rate_limit(panel, task_name, rate_limit, **kwargs):
     try:
         timeutils.rate(rate_limit)
     except ValueError as exc:
-        return {'error': 'Invalid rate limit string: {!r}'.format(exc)}
+        return {'error': 'Invalid rate limit string: {0!r}'.format(exc)}
 
     try:
         panel.app.tasks[task_name].rate_limit = rate_limit