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 {}.
In an incomplete setup (e.g. dev install before calling
intelmqsetupor when deleting the runtime config), this causes an exception asdefaultsis undefined:intelmq/intelmq/bin/intelmqdump.py
Lines 191 to 198 in bbe452a
in the except-block,
defaultsshould be set to{}.