OrderInfo can be completely empty

In which case it should still be an OrderInfo not None
This commit is contained in:
Jacob Bom 2017-05-20 16:54:59 +02:00
parent b276b06b31
commit 402e1381bb

View file

@ -49,7 +49,7 @@ class OrderInfo(TelegramObject):
telegram.OrderInfo:
"""
if not data:
return None
return OrderInfo()
data = super(OrderInfo, OrderInfo).de_json(data, bot)