[pytango] 451/483: Fixed raise exception in case of DevFailed
Sandor Bodo-Merle
sbodomerle-guest at moszumanska.debian.org
Thu Sep 28 19:15:11 UTC 2017
This is an automated email from the git hooks/post-receive script.
sbodomerle-guest pushed a commit to annotated tag bliss_8.10
in repository pytango.
commit 569bfe6ae9876c9ce398f621d12bb4d46fa46323
Author: coutinho <coutinho at esrf.fr>
Date: Fri Mar 27 13:27:22 2015 +0100
Fixed raise exception in case of DevFailed
---
src/boost/python/server.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/boost/python/server.py b/src/boost/python/server.py
index 5850d41..be4f944 100644
--- a/src/boost/python/server.py
+++ b/src/boost/python/server.py
@@ -1170,7 +1170,10 @@ def _create_gevent_worker():
self.__watcher.send()
event.wait()
if task.exception:
- Except.throw_python_exception(*task.exception)
+ if issubclass(task.exception[0], DevFailed):
+ raise task.exception[1]
+ else:
+ Except.throw_python_exception(*task.exception)
return task.value
def stop(self):
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pytango.git
More information about the debian-science-commits
mailing list