From 4ba5fb7a13c904e10f919d5dc9a46e9479987e05 Mon Sep 17 00:00:00 2001 From: Marina Galvagni <96880748+margalva@users.noreply.github.com> Date: Mon, 16 Oct 2023 18:39:32 -0400 Subject: [PATCH] Syntax error in exception clause (#72) --- src/ansys/dynamicreporting/core/utils/geofile_processing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ansys/dynamicreporting/core/utils/geofile_processing.py b/src/ansys/dynamicreporting/core/utils/geofile_processing.py index 0d9a58eb..ef00c14e 100644 --- a/src/ansys/dynamicreporting/core/utils/geofile_processing.py +++ b/src/ansys/dynamicreporting/core/utils/geofile_processing.py @@ -198,7 +198,7 @@ def rebuild_3d_geometry(csf_file: str, unique_id: str, exec_basis: str = None): close_fds=True, creationflags=create_flags, ) - except Exception: + except Exception as e: print(f"Warning: unable to convert '{csf_file}' into AVZ format: {str(e)}") # At this point, if we have an original AVZ file or a converted udrw file, we # still look for proxy images. @@ -212,5 +212,5 @@ def rebuild_3d_geometry(csf_file: str, unique_id: str, exec_basis: str = None): with open(os.path.join(avz_dir, "proxy.png"), "wb") as output_file: output_file.write(data) break - except Exception: + except Exception as e: print(f"Warning: unable to extract AVZ proxy image: {str(e)}")