Explorar el Código

I think this is the correct wording. We are calling the __init__ method of HttpError class' parent, which is Exception.

Tayfun Sen hace 13 años
padre
commit
41be995703
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      docs/userguide/tasks.rst

+ 1 - 1
docs/userguide/tasks.rst

@@ -710,7 +710,7 @@ you have to pass them as regular args:
             self.headers = headers
             self.body = body
 
-            super(Exception, self).__init__(status_code, headers, body)
+            super(HttpError, self).__init__(status_code, headers, body)
 
 .. _task-custom-classes: