aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xlater6
1 files changed, 2 insertions, 4 deletions
diff --git a/later b/later
index ff7c478..d60550b 100755
--- a/later
+++ b/later
@@ -118,9 +118,7 @@ for path, basename, mtime in entries():
print(*output, sep="\t")
if write_title_map:
- try:
- os.mkdir(later_cache_dir)
- except FileExistsError:
- pass
+ os.makedirs(later_cache_dir, exist_ok=True)
+
with open(title_map_file, "w") as handle:
json.dump(title_map, handle)