Skip to content

Commit 1c9faa8

Browse files
committed
FIX: Behave properly when state file does not exists yet.
1 parent f27dbeb commit 1c9faa8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build_docs.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ def load_state(self) -> dict:
954954
return tomlkit.loads(state_file.read_text(encoding="UTF-8"))[
955955
f"/{self.language.tag}/{self.version.name}/"
956956
]
957-
except KeyError:
957+
except (KeyError, FileNotFoundError):
958958
return {}
959959

960960
def save_state(self, build_duration: float):

0 commit comments

Comments
 (0)