Commit 0304eb59 authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

python: raise an exception on overrun

Former-commit-id: 4d91bde2
parent 658b8c6f
...@@ -80,7 +80,7 @@ class Simulation(_dpsim.Simulation): ...@@ -80,7 +80,7 @@ class Simulation(_dpsim.Simulation):'Finished simulation!')'Finished simulation!')
def overrun(self, *args): def overrun(self, *args):
LOGGER.warn('Overrun in simulation!'); raise RuntimeError("Simulation overrun!")
async def __update_progressbar_task(self): async def __update_progressbar_task(self):
while self.time < self.final_time: 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