aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rwxr-xr-xlater7
1 files changed, 5 insertions, 2 deletions
diff --git a/later b/later
index 59220af..3d43578 100755
--- a/later
+++ b/later
@@ -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():