[pytango] 359/483: Fix #651
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 beb1f3f9f08c497df1251a02ae980364aaff9822
Author: tiagocoutinho <tiagocoutinho at 4e9c00fd-8f2e-0410-aa12-93ce3db5e235>
Date: Mon Feb 24 08:24:24 2014 +0000
Fix #651
git-svn-id: http://svn.code.sf.net/p/tango-cs/code/bindings/PyTango/trunk@25039 4e9c00fd-8f2e-0410-aa12-93ce3db5e235
---
doc/revision.rst | 1 +
src/boost/python/attr_data.py | 9 +++++++--
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/doc/revision.rst b/doc/revision.rst
index 7c18440..a55bd56 100644
--- a/doc/revision.rst
+++ b/doc/revision.rst
@@ -94,6 +94,7 @@ Version history
| | - `648: PyTango unicode method parameters fail <https://sourceforge.net/p/tango-cs/bugs/648/>`_ |
| | - `649: write_attribute of spectrum/image fails in PyTango without numpy <https://sourceforge.net/p/tango-cs/bugs/649/>`_ |
| | - `650: [pytango] 8.1.1 not compatible with ipyton 1.2.0-rc1 <https://sourceforge.net/p/tango-cs/bugs/650/>`_ |
+| | - `651: PyTango segmentation fault when run a DS that use attr_data.py <https://sourceforge.net/p/tango-cs/bugs/651/>`_ |
+----------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| 8.1.1 | Features: |
| | - Implemented tango C++ 8.1 API |
diff --git a/src/boost/python/attr_data.py b/src/boost/python/attr_data.py
index c75c6d6..5812e04 100644
--- a/src/boost/python/attr_data.py
+++ b/src/boost/python/attr_data.py
@@ -274,8 +274,13 @@ class AttrData(object):
throw_ex("Wrong polling period in attribute information for "
"attribute %s in class %s\nAttribute information for "
"polling period is not an integer" % (attr_name, name))
-
- memorized = extra_info.get("memorized", "false").lower()
+
+ try:
+ memorized = extra_info.get("memorized", "false").lower()
+ except:
+ throw_ex("Wrong memorized value. for attribute %s in class %s."
+ "Allowed valued are the strings \"true\", \"false\" and "
+ "\"true_without_hard_applied\" (case incensitive)")
if memorized == "true":
self.memorized = True
self.hw_memorized = True
--
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