diff --git a/pykhipu/responses.py b/pykhipu/responses.py index c6a375d..e387747 100644 --- a/pykhipu/responses.py +++ b/pykhipu/responses.py @@ -74,7 +74,9 @@ def __init__(self, payment_id, payment_url, simplified_transfer_url, @classmethod def from_data(cls, data): - conciliation_date = dateutil.parser.parse(data.get('conciliation_date')) + conciliation_date = data.get('conciliation_date') + if conciliation_date: + conciliation_date = dateutil.parser.parse(conciliation_date) expires_date = dateutil.parser.parse(data.get('expires_date')) return cls(data.get('payment_id'), data.get('payment_url'), diff --git a/pyproject.toml b/pyproject.toml index 49ad34b..14f52bf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pykhipu" -version = "0.1.7" +version = "0.1.8" description = "Wrapper for the Khipu payment service API v2.0" authors = ["Pablo Albornoz "] license = "MIT"