Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix example code for Docker events (#70)
1. The event_task must be cancelled in any case. Cancelling a task never raises an exception even if the task is already done. 2. Check that the event_task has not been cancelled and get its result. If the task has been cancelled properly, nothing will happen. If the task had an exception, the exception will be raised and displayed properly to the terminal. 3. Add another level of try...except because even if the Docker exception is raised by the task, we still need to close the loop. Fixes #34
- Loading branch information