Skip to content

intelmqdump: exception when loading defaults fails #2702

@sebix

Description

@sebix

In an incomplete setup (e.g. dev install before calling intelmqsetup or when deleting the runtime config), this causes an exception as defaults is undefined:

try:
defaults = utils.get_global_settings()
except Exception:
log_level = DEFAULT_LOGGING_LEVEL
try:
logger = utils.log('intelmqdump',
log_level=defaults.get('logging_level', DEFAULT_LOGGING_LEVEL),

in the except-block, defaults should be set to {}.

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions