Thanks to visit codestin.com
Credit goes to github.com

Skip to content

SyntaxError in bots causes intelmqctl check to crash #2177

@wagner-intevation

Description

@wagner-intevation

intelmqctl check tries to import all bots to check if they exists and some other checks:

# importable module
try:
bot_module = importlib.import_module(bot_config['module'])
except ImportError as exc:
check_logger.error('Incomplete installation: Bot %r not importable: %r.', bot_id, exc)
retval = 1
continue

However, if the bot has a syntax error, this causes intelmqctl check to crash itself with an uncaught SyntaxError. In these cases the manager won't display anything useful.

This kind of error error should be caught as well.

Metadata

Metadata

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions