Index: /main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/remita/helpers.py
===================================================================
--- /main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/remita/helpers.py	(revision 14768)
+++ /main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/remita/helpers.py	(revision 14769)
@@ -50,5 +50,8 @@
             "lineItems":lineitems
             }
-    h.request("POST", url, body=json.dumps(data), headers=headers)
+    try:
+        h.request("POST", url, body=json.dumps(data), headers=headers)
+    except:
+        return {'error': 'Socket Error: Connection to Remita gateway refused.'}
     resp = h.getresponse()
     if resp.status!=200:
@@ -73,5 +76,8 @@
     else:
         h = httplib.HTTPConnection(host)
-    h.request("GET", url, headers=headers)
+    try:
+        h.request("GET", url, headers=headers)
+    except:
+        return {'error': 'Socket Error: Connection to Remita gateway refused.'}
     resp = h.getresponse()
     if resp.status!=200:
