diff options
Diffstat (limited to 'postgresqleu/trustlypayment/api.py')
| -rw-r--r-- | postgresqleu/trustlypayment/api.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/postgresqleu/trustlypayment/api.py b/postgresqleu/trustlypayment/api.py index a4fca9fd..9c8e268b 100644 --- a/postgresqleu/trustlypayment/api.py +++ b/postgresqleu/trustlypayment/api.py @@ -112,7 +112,7 @@ class TrustlyWrapper(object): raise TrustlyException("bad http response code {0}".format(u.getcode())) u.close() r = json.loads(resp) - if r.has_key('error'): + if 'error' in r: # XXX log and raise generic exception! raise TrustlyException(r['error']['message']) if r['result']['method'] != method: |
