[pytango] 25/122: beacon: fix small problem on get_class_property_list method

Sandor Bodo-Merle sbodomerle-guest at moszumanska.debian.org
Thu Sep 28 19:18:14 UTC 2017


This is an automated email from the git hooks/post-receive script.

sbodomerle-guest pushed a commit to tag v9.2.1
in repository pytango.

commit 7789c5a2e3a46cba5ac8f9c68f9a30ce9019f877
Author: Sébastien Petitdemange <sebastien.petitdemange at esrf.fr>
Date:   Fri Jul 29 18:30:21 2016 +0200

    beacon: fix small problem on get_class_property_list method
---
 src/boost/python/databaseds/db_access/beacon.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/boost/python/databaseds/db_access/beacon.py b/src/boost/python/databaseds/db_access/beacon.py
index fdae227..8bcfcd6 100644
--- a/src/boost/python/databaseds/db_access/beacon.py
+++ b/src/boost/python/databaseds/db_access/beacon.py
@@ -420,7 +420,7 @@ class beacon(object):
         
     @_info
     def get_class_property_list(self, class_name):
-        properties = self._class_name_2_node.get(class_name).get("properties", dict())
+        properties = self._class_name_2_node.get(class_name,dict()).get("properties", dict())
         return [k for k,v in properties.iteritems() if not isinstance(v,dict)]
         #cache = settings.get_cache()
         #return cache.keys('tango.class.properties.%s*' % class_name)

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