From 38bad5454e91bb9a5f7fbfd89f1866815139fcf9 Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Tue, 15 Aug 2017 03:43:27 +0300 Subject: [PATCH] Fix date parser. --- aiogram/types/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiogram/types/base.py b/aiogram/types/base.py index cafecab1..5cabbf3e 100644 --- a/aiogram/types/base.py +++ b/aiogram/types/base.py @@ -61,7 +61,7 @@ class Deserializable: @classmethod def _parse_date(cls, unix_time): - if unix_time is not None: + if unix_time: return datetime.datetime.fromtimestamp(unix_time) @property