Permalink
Browse files

Makes value argument of prepare_expires optional

  • Loading branch information...
1 parent ff7223d commit 05d3529dfd530c1c3de066e8940a9f06b1f0100c @mher committed May 15, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 tcelery/producer.py
View
2 tcelery/producer.py
@@ -63,7 +63,7 @@ def on_result(self, callback, method, channel, deliver, reply):
reply = pickle.loads(reply)
callback(AsyncResult(**reply))
- def prepare_expires(self, value, type=None):
+ def prepare_expires(self, value=None, type=None):
if value is None:
value = self.app.conf.CELERY_TASK_RESULT_EXPIRES
if isinstance(value, timedelta):

0 comments on commit 05d3529

Please sign in to comment.