瀏覽代碼

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

Tayfun Sen 13 年之前
父節點
當前提交
41be995703
共有 1 個文件被更改,包括 1 次插入1 次删除
  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: