(fpath)
| 131 | |
| 132 | |
| 133 | def load_json_cache(fpath): |
| 134 | cache = {} |
| 135 | if not os.path.exists(fpath): |
| 136 | pass |
| 137 | if os.path.isfile(fpath): |
| 138 | try: |
| 139 | with open(fpath, 'r') as fp: |
| 140 | cache = json.load(fp) |
| 141 | except Exception: |
| 142 | pass |
| 143 | return cache |
| 144 | |
| 145 | |
| 146 | def write_json_cache(fpath, cache): |
no test coverage detected