[pytango] 355/483: Fix #641

Sandor Bodo-Merle sbodomerle-guest at moszumanska.debian.org
Thu Sep 28 19:14:59 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 579ffab754486f8955b409b4e406bc167a488b33
Author: tiagocoutinho <tiagocoutinho at 4e9c00fd-8f2e-0410-aa12-93ce3db5e235>
Date:   Thu Feb 6 19:17:01 2014 +0000

    Fix #641
    
    git-svn-id: http://svn.code.sf.net/p/tango-cs/code/bindings/PyTango/trunk@24864 4e9c00fd-8f2e-0410-aa12-93ce3db5e235
---
 src/boost/python/ipython/ipython_00_11/ipython_00_11.py | 2 +-
 src/boost/python/ipython/ipython_10_00/ipython_10_00.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/boost/python/ipython/ipython_00_11/ipython_00_11.py b/src/boost/python/ipython/ipython_00_11/ipython_00_11.py
index bbf5911..ac3a8d2 100644
--- a/src/boost/python/ipython/ipython_00_11/ipython_00_11.py
+++ b/src/boost/python/ipython/ipython_00_11/ipython_00_11.py
@@ -536,7 +536,7 @@ def __exc_handler(ip, etype, value, tb, tb_offset=None):
         global _TANGO_ERR
         user_ns[_TANGO_ERR] = etype, value, tb, tb_offset
         if len(value.args):
-            v = value[0]
+            v = value.args[0]
             print("%s: %s" % (v.reason ,v.desc))
         else:
             print("Empty DevFailed")
diff --git a/src/boost/python/ipython/ipython_10_00/ipython_10_00.py b/src/boost/python/ipython/ipython_10_00/ipython_10_00.py
index df08e20..9137bc8 100644
--- a/src/boost/python/ipython/ipython_10_00/ipython_10_00.py
+++ b/src/boost/python/ipython/ipython_10_00/ipython_10_00.py
@@ -537,7 +537,7 @@ def __exc_handler(ip, etype, value, tb, tb_offset=None):
         global _TANGO_ERR
         user_ns[_TANGO_ERR] = etype, value, tb, tb_offset
         if len(value.args):
-            v = value[0]
+            v = value.args[0]
             print("%s: %s" % (v.reason ,v.desc))
         else:
             print("Empty DevFailed")

-- 
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