Code cleanup
This commit is contained in:
parent
b48a00b9b2
commit
b14eb0551f
@ -177,9 +177,8 @@ class Configuration(object):
|
|||||||
"Configuration check: common -> snr: Length of exposure time (%d) not matching the length of "
|
"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)))
|
"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")):
|
if not (hasattr(self.conf.common, "exposure_time") or hasattr(self.conf.common, "snr")):
|
||||||
logger.error(
|
logger.error("Configuration check: common: Expected at least one of the containers 'exposure_time' or " +
|
||||||
"Configuration check: common: Expected at least one of the containers 'exposure_time' or 'snr' but" +
|
"'snr' but got none.")
|
||||||
"got none.")
|
|
||||||
|
|
||||||
# Check astroscene
|
# Check astroscene
|
||||||
if not hasattr(self.conf, "astroscene"):
|
if not hasattr(self.conf, "astroscene"):
|
||||||
|
Loading…
Reference in New Issue
Block a user