Changeset 17014 for main/kofacustom.nigeria/trunk
- Timestamp:
- 10 Jul 2022, 07:01:10 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/interswitch/helpers.py
r16587 r17014 19 19 """ 20 20 from datetime import datetime 21 from ssl import SSLError 21 22 import httplib 22 23 import hashlib … … 92 93 'amount': amount} 93 94 url = '%s?' % url + urlencode(args) 94 h.request("GET", url, headers=headers) 95 try: 96 h.request("GET", url, headers=headers) 97 except SSLError: 98 return {'error': 'SSL handshake error'} 95 99 response = h.getresponse() 96 100 if response.status!=200:
Note: See TracChangeset for help on using the changeset viewer.