8000 SyntaxError in bots causes `intelmqctl check` to crash · Issue #2177 · certtools/intelmq · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
SyntaxError in bots causes intelmqctl check to crash #2177
Closed
@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

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0