From f8c9d4237d5959cd36f12641ecfa534c5ec817cd Mon Sep 17 00:00:00 2001 From: NLSA Date: Wed, 11 Mar 2026 23:17:51 +0100 Subject: [PATCH] update main store_file --- main.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main.py b/main.py index 7538452..9b2a926 100644 --- a/main.py +++ b/main.py @@ -196,12 +196,12 @@ def automate_function( ifc.write(ifc_filename) print(f"\n💾 IFC file written: {ifc_filename}") - # try: - # automate_context.mark_run_success("Success! You can download the IF file below.") - # automate_context.store_file_result(f"./{ifc_filename}") - # except Exception as e: - # print(f" ⚠️ Could not upload file result (network issue?): {e}") - # automate_context.mark_run_failed(f"Something went wrong when storing file result. Exception detail: {e}") + try: + automate_context.mark_run_success("Success! You can download the IF file below.") + automate_context.store_file_result(f"./{ifc_filename}") + except Exception as e: + print(f" ⚠️ Could not upload file result (network issue?): {e}") + automate_context.mark_run_failed(f"Something went wrong when storing file result. Exception detail: {e}") print(f"\n{'=' * 60}") print(f" Export complete!")