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