Skip to content

Commit 4ba5fb7

Browse files
authored
Syntax error in exception clause (#72)
1 parent 343bbf4 commit 4ba5fb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ansys/dynamicreporting/core/utils/geofile_processing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def rebuild_3d_geometry(csf_file: str, unique_id: str, exec_basis: str = None):
198198
close_fds=True,
199199
creationflags=create_flags,
200200
)
201-
except Exception:
201+
except Exception as e:
202202
print(f"Warning: unable to convert '{csf_file}' into AVZ format: {str(e)}")
203203
# At this point, if we have an original AVZ file or a converted udrw file, we
204204
# still look for proxy images.
@@ -212,5 +212,5 @@ def rebuild_3d_geometry(csf_file: str, unique_id: str, exec_basis: str = None):
212212
with open(os.path.join(avz_dir, "proxy.png"), "wb") as output_file:
213213
output_file.write(data)
214214
break
215-
except Exception:
215+
except Exception as e:
216216
print(f"Warning: unable to extract AVZ proxy image: {str(e)}")

0 commit comments

Comments
 (0)