fix selecter

This commit is contained in:
Pascal Vizeli 2018-04-25 22:12:27 +02:00
parent 1c0d63a02e
commit 2b2f3214e9

View File

@ -264,6 +264,6 @@ class CoreSysAttributes:
def __getattr__(self, name):
"""Mapping to coresys."""
if name.startswith("sys_") and hasattr(self.coresys, name[5:]):
return getattr(self.coresys, name[5:])
if name.startswith("sys_") and hasattr(self.coresys, name[4:]):
return getattr(self.coresys, name[4:])
raise AttributeError()