summaryrefslogtreecommitdiffstats
path: root/eopayment/tipi.py
diff options
context:
space:
mode:
Diffstat (limited to 'eopayment/tipi.py')
-rw-r--r--eopayment/tipi.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/eopayment/tipi.py b/eopayment/tipi.py
index 4e18c39..ef20199 100644
--- a/eopayment/tipi.py
+++ b/eopayment/tipi.py
@@ -145,12 +145,12 @@ class Payment(PaymentCommon):
def response(self, query_string, **kwargs):
fields = parse_qs(query_string, True)
if not set(fields) >= set(['refdet', 'resultrans']):
- raise ResponseError()
+ raise ResponseError('missing refdet or resultrans')
for key, value in fields.items():
fields[key] = value[0]
refdet = fields.get('refdet')
if refdet is None:
- raise ValueError('refdet is missing')
+ raise ResponseError('refdet is missing')
if 'objet' in fields:
iso_now = fields['objet']
else: