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.
intelmqctl checktries to import all bots to check if they exists and some other checks:intelmq/intelmq/bin/intelmqctl.py
Lines 923 to 929 in 0221a25
However, if the bot has a syntax error, this causes
intelmqctl checkto crash itself with an uncaughtSyntaxError. In these cases the manager won't display anything useful.This kind of error error should be caught as well.