Ignore:
Timestamp:
30 Nov 2017, 09:10:38 (7 years ago)
Author:
Henrik Bettermann
Message:

Catch traceback.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/remita/helpers.py

    r14820 r14916  
    5252    try:
    5353        h.request("POST", url, body=json.dumps(data), headers=headers)
     54        resp = h.getresponse()
    5455    except:
    5556        return {'error': 'Socket Error: Connection to Remita gateway refused.'}
    56     resp = h.getresponse()
    5757    if resp.status!=200:
    58         return {'error': 'Connection error (%s, %s)' % (resp.status, resp.reason)}
     58        return {'error': 'Connection Error (%s, %s)' % (resp.status, resp.reason)}
    5959    jsonout = resp.read()
    6060    try:
Note: See TracChangeset for help on using the changeset viewer.