You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are several places in the SaltProc source code where try-except blocks are used to catch errors. In most of the except blocks a message prints instead of raising another exception.
Description of idea
Raising specific exceptions in the except blocks would give us more specific error messages. This is useful for debugging.
Implementation details
The following functions and locations in the code have try-catch blocks where no exceptions are raised:
app.read_main_input
DepcodeSerpent.create_iter_matfile
DepcodeSerpent.switch_to_next_geometry
Simulation.store_after_repr
Simulation.store_mat_data
Simulation.store_run_step_info
Simulation.store_run_init_info
Simulation.check_restart
Potential snags
This may require modifying unit/integration tests
The text was updated successfully, but these errors were encountered:
Background and motivation
There are several places in the SaltProc source code where
try-except
blocks are used to catch errors. In most of theexcept
blocks a message prints instead of raising another exception.Description of idea
Raising specific exceptions in the
except
blocks would give us more specific error messages. This is useful for debugging.Implementation details
The following functions and locations in the code have
try-catch
blocks where no exceptions are raised:app.read_main_input
DepcodeSerpent.create_iter_matfile
DepcodeSerpent.switch_to_next_geometry
Simulation.store_after_repr
Simulation.store_mat_data
Simulation.store_run_step_info
Simulation.store_run_init_info
Simulation.check_restart
Potential snags
This may require modifying unit/integration tests
The text was updated successfully, but these errors were encountered: