Skip to content

Conversation

@prescod
Copy link
Contributor

@prescod prescod commented Nov 26, 2021

api.py previously had code to swallow errors closing streams (files, database connections, etc.)

This might hide errors, so I took it out.

There is a kind of output stream known as a MultiplexOutputStream that allows multiple outputs at once. I ADDED exception handling here, to ensure that we try to close all output streams. Nevertheless, once it is done it throws an exception if any failed.

A couple of tests were also updated.

@prescod prescod requested a review from a team as a code owner November 26, 2021 21:40
@prescod prescod force-pushed the feature/output-stream-cleanups branch from 312b9b8 to 8809c60 Compare November 26, 2021 22:30
@prescod prescod force-pushed the feature/output-stream-cleanups branch from 8809c60 to f60cd1c Compare November 26, 2021 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants