-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add exception handling for BrokenPipeError
If we write to the pipe, used to communicate with the apt parent process, after apt has closed it, Python raises a BrokenPipeError. This commit adds exception handling to the write function and a global boolean BROKENPIPE used as exit condition for the reader threads. The commit leaves a few TODO notes that suggest better (more readable) exception handling.
- Loading branch information
Showing
1 changed file
with
37 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters