Skip to content

Commit

Permalink
Syntax error in exception clause (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
margalva authored Oct 16, 2023
1 parent 343bbf4 commit 4ba5fb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ansys/dynamicreporting/core/utils/geofile_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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)}")

0 comments on commit 4ba5fb7

Please sign in to comment.