Fixed issue #64. Raise an error if the run()’s until event is not triggered.

#52 Merged
Repository
Deleted repository
Branch
default (bcc69fa2c7b2)
Repository
simpy
Branch
default
Author
  1. Stefan Scherfke
Reviewers
Description

It’s not a one-liner because you have to differentiate between the helper event that was generated for until is None and a user-generated event explicitly passed as run(until=evt).

The event generated in the case of until is None will never be triggered but we don’t want to raise an exception in that case.

We only want an exception if the user explicitly passed an event or process and if that didn’t get triggered.

Comments (0)