git://git.onelab.eu
/
monitor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove zabbix from spec file.
[monitor.git]
/
pcucontrol
/
models
/
IPAL.py
diff --git
a/pcucontrol/models/IPAL.py
b/pcucontrol/models/IPAL.py
index
a2ea026
..
641326f
100644
(file)
--- a/
pcucontrol/models/IPAL.py
+++ b/
pcucontrol/models/IPAL.py
@@
-21,7
+21,10
@@
class IPAL(PCUControl):
ret = s.recv(count, socket.MSG_DONTWAIT)
except socket.error, e:
if e[0] == errno.EAGAIN:
ret = s.recv(count, socket.MSG_DONTWAIT)
except socket.error, e:
if e[0] == errno.EAGAIN:
- raise Exception(e[1])
+ #raise Exception(e[1])
+ raise ExceptionNotFound(e[1])
+ elif e[0] == errno.ETIMEDOUT:
+ raise ExceptionTimeout(e[1])
else:
# TODO: not other exceptions.
raise Exception(e)
else:
# TODO: not other exceptions.
raise Exception(e)