koji/fedmsg: turns out we should also ignore long
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
2459f61b95
commit
9dd433c6ec
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ def serialize_datetime_in_task(task):
|
|||
for date_key in date_fields:
|
||||
if task.get(date_key) is None:
|
||||
continue
|
||||
if isinstance(task[date_key], (float, int)):
|
||||
if isinstance(task[date_key], (float, int, long)):
|
||||
continue
|
||||
task[date_key] = time.mktime(task[date_key].timetuple())
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue