commit | d98e1729b3e1e83d796727d59be610dae4254611 | [log] [tgz] |
---|---|---|
author | Ian Cordasco <graffatcolmingov@gmail.com> | Sun Aug 16 19:00:31 2015 |
committer | Ian Cordasco <graffatcolmingov@gmail.com> | Sun Aug 16 19:00:32 2015 |
tree | 9fd00fd96b66dd74f2ebd5eba77279961022e29c | |
parent | 57ec990dad132c98b601006fd83fe50125cc647a [diff] |
Handle EPIPE IOErrors when using more than 1 job If someone is using flake8 and piping it to a command like `head`, the command they are piping flake8's output too may close the pipe earlier than flake8 expects. To avoid extraneous exception output being printed, we now catch IOErrors and check their errnos to ensure they're something we know we can ignore. This also provides flexibility to add further errnos for ignoring on a case-by-case basis. Closes #69