diff --git a/pykhipu/responses.py b/pykhipu/responses.py index e387747..82333a3 100644 --- a/pykhipu/responses.py +++ b/pykhipu/responses.py @@ -537,7 +537,7 @@ def __init__(self, message): @classmethod def from_data(cls, data): - return cls(data['message']) + return cls(data.get('message')) @property def message(self): diff --git a/pyproject.toml b/pyproject.toml index 14f52bf..b01a53c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pykhipu" -version = "0.1.8" +version = "0.1.9" description = "Wrapper for the Khipu payment service API v2.0" authors = ["Pablo Albornoz "] license = "MIT"