From 1dc5a1e9e8861e4ca5ce4b9cbe255c07ff728e79 Mon Sep 17 00:00:00 2001 From: erik Date: Tue, 21 Feb 2023 09:54:18 +0100 Subject: [PATCH] WIP Fix returns and function calls --- version_repository.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/version_repository.py b/version_repository.py index 516a6f1..725884b 100644 --- a/version_repository.py +++ b/version_repository.py @@ -10,7 +10,7 @@ class VersionRepository(): def load_file(self): self.file_handler = FileHandler.from_file_path(self.file) - return file_handler + return self.file_handler def write_file(self, version_string): if self.file_handler is None: @@ -28,7 +28,7 @@ class VersionRepository(): def get(cls, file): inst = cls(file) - file_handler= inst.load_file(file) + file_handler = inst.load_file() version_list, is_snapshot = inst.parse_file(file_handler) inst.version_list = version_list