This commit is contained in:
Dirk Müller
2024-05-16 11:18:42 +02:00
parent 28d5c6e606
commit b0ffb01c59
4 changed files with 4 additions and 4 deletions

View File

@@ -40,7 +40,7 @@ class GitExporter:
def check_repo_state(self, flats, branch_state):
state_data = dict()
if os.path.exists(self.state_file):
with open(self.state_file, "r") as f:
with open(self.state_file) as f:
state_data = yaml.safe_load(f)
if type(state_data) != dict:
state_data = {}