Skip to content

Commit ab44e13

Browse files
authored
Reduce error spam on plugin termination (#188)
1 parent 948bfcd commit ab44e13

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/galaxy/api/plugin.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,8 +1129,11 @@ async def coroutine():
11291129
async with plugin_class(reader, writer, token) as plugin:
11301130
await plugin.run()
11311131
finally:
1132-
writer.close()
1133-
await writer.wait_closed()
1132+
try:
1133+
writer.close()
1134+
await writer.wait_closed()
1135+
except (ConnectionAbortedError, ConnectionResetError):
1136+
pass
11341137

11351138
try:
11361139
if sys.platform == "win32":

0 commit comments

Comments
 (0)