diff options
-rwxr-xr-x | later | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -118,8 +118,11 @@ class TitleMap: os.makedirs(later_cache_dir, exist_ok=True) - with open(self.path, "w") as handle: - json.dump(self.map, handle) + try: + with open(self.path, "w") as handle: + json.dump(self.map, handle) + except OSError as err: + sys.exit(f"later: {err}") def entries(): |