Skip to content
This repository has been archived by the owner on Nov 17, 2018. It is now read-only.

Commit

Permalink
Makes value argument of prepare_expires optional
Browse files Browse the repository at this point in the history
  • Loading branch information
mher committed May 15, 2013
1 parent ff7223d commit 05d3529
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tcelery/producer.py
Expand Up @@ -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):
Expand Down

0 comments on commit 05d3529

Please sign in to comment.