Explorar o código

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

Tayfun Sen %!s(int64=13) %!d(string=hai) anos
pai
achega
41be995703
Modificáronse 1 ficheiros con 1 adicións e 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: