mirror of
https://opendev.org/x/pyghmi
synced 2026-05-14 02:14:21 +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:
+3
-2
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user