From d7763f748b9baea294c60e29cdc3650efcd24c5b Mon Sep 17 00:00:00 2001 From: pedro Date: Thu, 26 Sep 2024 12:17:52 -0300 Subject: [PATCH] bugfix wrong try/except --- workbench-script.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workbench-script.py b/workbench-script.py index dba27e6..28f391d 100644 --- a/workbench-script.py +++ b/workbench-script.py @@ -276,7 +276,7 @@ def save_snapshot_in_disk(snapshot, path): 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.") + print(f"workbench: ERROR: Failed to write in fallback path: {fallback_filename}. Could not save snapshot locally.") # TODO sanitize url, if url is like this, it fails # url = 'http://127.0.0.1:8000/api/snapshot/'