From 35d8316a39fa8640390e441b39643edb3f047831 Mon Sep 17 00:00:00 2001 From: Terje Kvernes Date: Wed, 6 Dec 2023 02:06:22 +0100 Subject: [PATCH] Avoid reimplementing stop_recording when saving. --- mreg_cli/outputmanager.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mreg_cli/outputmanager.py b/mreg_cli/outputmanager.py index 4edd3f79..70847a55 100644 --- a/mreg_cli/outputmanager.py +++ b/mreg_cli/outputmanager.py @@ -182,9 +182,7 @@ def save_recording(self) -> None: with open(self._filename, "w") as rec_file: json.dump(self._recorded_data, rec_file, indent=2) - self._recording = False - self._recorded_data = [] - self._filename = None + self.stop_recording() def is_recording(self) -> bool: """Returns True if recording is active."""