From 8183b80a68fe295607198e771bd38cfe10effd81 Mon Sep 17 00:00:00 2001 From: Marina Galvagni Date: Mon, 16 Oct 2023 15:27:36 -0400 Subject: [PATCH] Syntax error in exception clause --- 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 0d9a58ebb..ef00c14e5 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)}")