X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=pcucontrol%2Fmodels%2FIPAL.py;fp=pcucontrol%2Fmodels%2FIPAL.py;h=641326f958a3db38d5f87beffc4e613042fc1e2e;hb=6dfabcd2ef4d6a9a4cf91e71fc5edfe8a005a417;hp=a2ea026ebd6802490383aed2576cd6993b8e788a;hpb=9cae0ec50c0201aa21dad28413402037816744bd;p=monitor.git diff --git a/pcucontrol/models/IPAL.py b/pcucontrol/models/IPAL.py index a2ea026..641326f 100644 --- 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: - 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)