Skip to content
Snippets Groups Projects
Commit 42355aa3 authored by BRONES Romain's avatar BRONES Romain
Browse files

fix(TTS): Properly catch DevFailed on GetAttDefinitionData

* See issue #4
* TTS still unusable as is
parent d069f97d
No related branches found
No related tags found
No related merge requests found
......@@ -267,7 +267,14 @@ def infoattr(attribute, db='H'):
info = dict()
for func in ("GetAttDefinitionData", "GetAttPropertiesData"):
R=getattr(ae._Extractors[{'H':0, 'T':1}[db]], func)(attribute)
try:
R=getattr(ae._Extractors[{'H':0, 'T':1}[db]], func)(attribute)
except tango.DevFailed:
logger.warning("Could not call command {} on extractor".format(func))
R=None
logger.debug(R)
if not R is None:
for i in R:
_s=i.split("::")
......
......@@ -18,7 +18,7 @@ Quick usage in ipython shell:
"""
# NB: Also change version number in setup.py
__version__ = "2.4"
__version__ = "2.4.1"
__all__ = ["Access", ]
......
......@@ -3,7 +3,7 @@
from distutils.core import setup
setup(name='ArchiveExtractor',
version='2.4', # NB Also change version number in __init__.py
version='2.4.1', # NB Also change version number in __init__.py
description='Python module for extracting data from Archive Extractor Tango Device.',
url='https://gitlab.synchrotron-soleil.fr/dg/archiveextractor',
license="GNU-GPL-v3",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment