Commit 4d91bde2 authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

python: raise an exception on overrun

parent 5aa67ba5
......@@ -80,7 +80,7 @@ class Simulation(_dpsim.Simulation):
LOGGER.info('Finished simulation!')
def overrun(self, *args):
LOGGER.warn('Overrun in simulation!');
raise RuntimeError("Simulation overrun!")
async def __update_progressbar_task(self):
while self.time < self.final_time:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment