From a95e687591e422d78a5f22d90536f2e45e2caaf8 Mon Sep 17 00:00:00 2001 From: pedro Date: Thu, 26 Sep 2024 12:04:05 -0300 Subject: [PATCH] pxe: bugfix wrong try --- workbench-script.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/workbench-script.py b/workbench-script.py index be482be..dba27e6 100644 --- a/workbench-script.py +++ b/workbench-script.py @@ -272,9 +272,9 @@ def save_snapshot_in_disk(snapshot, path): path, datetime.now().strftime("%Y%m%d-%H_%M_%S"), snapshot['uuid']) - with open(fallback_filename, "w") as f: - f.write(json.dumps(snapshot)) - print(f"workbench: INFO: Snapshot written in fallback path '{fallback_filename}'") + with open(fallback_filename, "w") as f: + f.write(json.dumps(snapshot)) + print(f"workbench: INFO: Snapshot written in fallback path '{fallback_filename}'") except Exception as e: print(f"workbench: ERROR: Failed to write in fallback path: {fallback_error}. Could not save snapshot locally.")