bugfix wrong try/except

This commit is contained in:
pedro 2024-09-26 12:17:52 -03:00
parent 30dce9b2ef
commit d7763f748b
1 changed files with 1 additions and 1 deletions

View File

@ -276,7 +276,7 @@ def save_snapshot_in_disk(snapshot, path):
f.write(json.dumps(snapshot)) f.write(json.dumps(snapshot))
print(f"workbench: INFO: Snapshot written in fallback path '{fallback_filename}'") print(f"workbench: INFO: Snapshot written in fallback path '{fallback_filename}'")
except Exception as e: 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 # TODO sanitize url, if url is like this, it fails
# url = 'http://127.0.0.1:8000/api/snapshot/' # url = 'http://127.0.0.1:8000/api/snapshot/'