Skip to content

Commit 5e3ab33

Browse files
committed
Add possible fix for Supervisor#1361: fix path which returns str rather than bytes when a network error occurs.
1 parent b52f49c commit 5e3ab33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

supervisor/medusa/asyncore_25.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ def recv(self, buffer_size):
352352
# winsock sometimes throws ENOTCONN
353353
if why.args[0] in [ECONNRESET, ENOTCONN, ESHUTDOWN]:
354354
self.handle_close()
355-
return ''
355+
return b''
356356
else:
357357
raise
358358

0 commit comments

Comments
 (0)