expect a broken pipe
This commit is contained in:
parent
0b64b4ac97
commit
1e57fb4609
@ -37,6 +37,8 @@ class Module(BaseModule, metaclass=ABCMeta):
|
||||
data = read()
|
||||
except ValueError:
|
||||
pass
|
||||
except BrokenPipeError:
|
||||
break
|
||||
if data is None or isinstance(data, bytes) and len(data) == 0:
|
||||
break
|
||||
write(data)
|
||||
|
Loading…
Reference in New Issue
Block a user