mirror of
https://opendev.org/x/pyghmi
synced 2025-01-28 11:57:34 +00:00
Fix pyghmicons script crash on idle
After 10 minutes of idle, the wrong exception was caught. Correct it to correctly handle errno 11 Change-Id: I91feea97c3442dec1fc30bd813e99da05a1ef329
This commit is contained in:
parent
9e31a70f5f
commit
da83354a97
@ -50,8 +50,9 @@ def _doinput():
|
||||
select.select((sys.stdin,), (), (), 600)
|
||||
try:
|
||||
data = sys.stdin.read()
|
||||
except OSError:
|
||||
continue
|
||||
except (IOError, OSError) as e:
|
||||
if e.errno == 11:
|
||||
continue
|
||||
sol.send_data(data)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user