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
Branches
Tags 2.4.1
No related merge requests found
...@@ -267,7 +267,14 @@ def infoattr(attribute, db='H'): ...@@ -267,7 +267,14 @@ def infoattr(attribute, db='H'):
info = dict() info = dict()
for func in ("GetAttDefinitionData", "GetAttPropertiesData"): for func in ("GetAttDefinitionData", "GetAttPropertiesData"):
try:
R=getattr(ae._Extractors[{'H':0, 'T':1}[db]], func)(attribute) 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: if not R is None:
for i in R: for i in R:
_s=i.split("::") _s=i.split("::")
......
...@@ -18,7 +18,7 @@ Quick usage in ipython shell: ...@@ -18,7 +18,7 @@ Quick usage in ipython shell:
""" """
# NB: Also change version number in setup.py # NB: Also change version number in setup.py
__version__ = "2.4" __version__ = "2.4.1"
__all__ = ["Access", ] __all__ = ["Access", ]
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
from distutils.core import setup from distutils.core import setup
setup(name='ArchiveExtractor', 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.', description='Python module for extracting data from Archive Extractor Tango Device.',
url='https://gitlab.synchrotron-soleil.fr/dg/archiveextractor', url='https://gitlab.synchrotron-soleil.fr/dg/archiveextractor',
license="GNU-GPL-v3", 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