core.job: Removed AttributeError exception on store_logging_stream

With .get() we don't need this, since we have default values.
Signed-off-by: NBeraldo Leal <bleal@redhat.com>
上级 e005c3cf
......@@ -167,10 +167,7 @@ class Job:
# TODO: Fix this, this is one of the few cases where using the config
# generated from the new settings with a hardcoded 'default' value
try:
store_logging_stream = self.config.get('run.store_logging_stream', [])
except AttributeError:
store_logging_stream = []
store_logging_stream = self.config.get('run.store_logging_stream', [])
for name in store_logging_stream:
name = re.split(r'(?<!\\):', name, maxsplit=1)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册