Changeset 14736
- Timestamp:
- 1 Aug 2017, 04:28:35 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/remita/helpers.py
r14735 r14736 52 52 resp = h.getresponse() 53 53 jsonout = resp.read() 54 parsed_json = json.loads(jsonout[6:-1]) 54 try: 55 parsed_json = json.loads(jsonout[6:-1]) 56 except ValueError: 57 return None 55 58 return parsed_json 56 59 … … 70 73 resp = h.getresponse() 71 74 jsonout = resp.read() 72 parsed_json = json.loads(jsonout) 75 try: 76 parsed_json = json.loads(jsonout) 77 except ValueError: 78 return None 73 79 return parsed_json 74 80
Note: See TracChangeset for help on using the changeset viewer.