Code cleanup

This commit is contained in:
Lukas Klass 2020-06-09 15:31:43 +02:00
parent b48a00b9b2
commit b14eb0551f

View File

@ -177,9 +177,8 @@ class Configuration(object):
"Configuration check: common -> snr: Length of exposure time (%d) not matching the length of "
"the SNR (%d)" % (len(self.conf.common.exposure_time.val), len(self.conf.common.snr.val)))
if not (hasattr(self.conf.common, "exposure_time") or hasattr(self.conf.common, "snr")):
logger.error(
"Configuration check: common: Expected at least one of the containers 'exposure_time' or 'snr' but" +
"got none.")
logger.error("Configuration check: common: Expected at least one of the containers 'exposure_time' or " +
"'snr' but got none.")
# Check astroscene
if not hasattr(self.conf, "astroscene"):