Browse Source

get_pickleable_etype must actually return a value... Closes #1556

Ask Solem 11 năm trước cách đây
mục cha
commit
8bcd1fd641
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      celery/utils/serialization.py

+ 2 - 0
celery/utils/serialization.py

@@ -182,6 +182,8 @@ def get_pickleable_etype(cls, loads=pickle.loads, dumps=pickle.dumps):
         loads(dumps(cls))
     except:
         return Exception
+    else:
+        return cls
 
 
 def get_pickled_exception(exc):