From 70f4112643ac4eff37cb7cd40460a32e8dcc3496 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 14 Sep 2020 20:15:30 +0530 Subject: [PATCH] ... --- kitty/shell.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kitty/shell.py b/kitty/shell.py index 8305e50a8..15aadf512 100644 --- a/kitty/shell.py +++ b/kitty/shell.py @@ -78,8 +78,7 @@ class Completer: def __init__(self) -> None: self.matches: List[str] = [] ddir = cache_dir() - with suppress(FileExistsError): - os.makedirs(ddir) + os.makedirs(ddir, exist_ok=True) self.history_path = os.path.join(ddir, 'shell.history') def complete(self, text: str, state: int) -> Optional[str]: