(self)
| 774 | self.cache_file = cache_file |
| 775 | |
| 776 | def read_cache(self): |
| 777 | try: |
| 778 | with open(self.cache_file) as f: |
| 779 | return hjson.load(f) |
| 780 | except FileNotFoundError: |
| 781 | logging.info(f"{self.cache_file} doesn't exist yet. Creating new.") |
| 782 | return {} |
| 783 | |
| 784 | def write_cache(self, cache): |
| 785 | with open(self.cache_file, 'w') as f: |