Explorar el Código

Add missing "self" parameter to class method.

David Strauss hace 14 años
padre
commit
b5b1c111c4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      celery/backends/cassandra.py

+ 1 - 1
celery/backends/cassandra.py

@@ -93,7 +93,7 @@ class CassandraBackend(BaseDictBackend):
 
         self._column_family = None
 
-    def _retry_on_error(func):
+    def _retry_on_error(self, func):
         def wrapper(*args, **kwargs):
             self = args[0]
             ts = time.time() + self._retry_timeout