Browse Source

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

Ask Solem 11 years ago
parent
commit
bf70637ab8
1 changed files with 2 additions and 0 deletions
  1. 2 0
      celery/utils/serialization.py

+ 2 - 0
celery/utils/serialization.py

@@ -151,6 +151,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):