Prevent against 'created_at' field being None.

main
Vincent Driessen 12 years ago
parent 7d37c257ae
commit 83525c42c7

@ -289,7 +289,7 @@ class Job(object):
key = self.key key = self.key
obj = {} obj = {}
obj['created_at'] = times.format(self.created_at, 'UTC') obj['created_at'] = times.format(self.created_at or times.now(), 'UTC')
if self.func_name is not None: if self.func_name is not None:
obj['data'] = dumps(self.job_tuple) obj['data'] = dumps(self.job_tuple)

Loading…
Cancel
Save