Skip to content

Commit

Permalink
Update messages
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzovecchietti committed May 6, 2024
1 parent 216b132 commit a9d8824
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions pyaedt/modules/MeshIcepak.py
Original file line number Diff line number Diff line change
Expand Up @@ -1068,11 +1068,12 @@ def _get_design_mesh_operations(self):
)
)
except TypeError:
# design_properties not loaded, maybe there are mesh op, we need to warn the user
# design_properties not loaded, maybe there are mesh region, we need to warn the user
self._app.logger.warning("No mesh operation found.")
self._app.logger.debug("Failed to get mesh operation from `design_properties`.")
except KeyError:
# design_properties loaded, mesh op keys missing, no need to warn the user
pass
# design_properties loaded, mesh region related keys missing, no need to warn the user
self._app.logger.debug("Failed to get mesh operation.")

return meshops

Expand Down Expand Up @@ -1109,11 +1110,12 @@ def _get_design_mesh_regions(self):
meshop.__dict__[el] = dict_prop[el]
meshops.append(meshop)
except TypeError:
# design_properties not loaded, maybe there are mesh op, we need to warn the user
# design_properties not loaded, maybe there are mesh region, we need to warn the user
self._app.logger.warning("No mesh region found.")
self._app.logger.debug("Failed to get mesh region from `design_properties`.")
except KeyError:
# design_properties loaded, mesh op keys missing, no need to warn the user
pass
# design_properties loaded, mesh region related keys missing, no need to warn the user
self._app.logger.debug("Failed to get mesh region.")

return meshops

Expand Down

0 comments on commit a9d8824

Please sign in to comment.