- Timestamp:
- 30 Nov 2017, 09:10:38 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/remita/helpers.py
r14820 r14916 52 52 try: 53 53 h.request("POST", url, body=json.dumps(data), headers=headers) 54 resp = h.getresponse() 54 55 except: 55 56 return {'error': 'Socket Error: Connection to Remita gateway refused.'} 56 resp = h.getresponse()57 57 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)} 59 59 jsonout = resp.read() 60 60 try:
Note: See TracChangeset for help on using the changeset viewer.