Commit 4945b778 authored by wind2008hxy's avatar wind2008hxy

fix: 修复jpush在celery raise error

parent 9e6d7897
......@@ -81,6 +81,8 @@ class JPushFailure(Exception):
class APIConnectionException(Exception):
def __init__(self, value):
self.value = value
# 修复celery的错误,参考https://github.com/celery/celery/issues/3623
super(Exception, self).__init__(value)
def __str__(self):
return repr(self.value)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment