You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
The command 'intelmqctl check' can now handle SyntaxError
caused in bot's code without crashing. In addition,
the command got first unittests.
The 'utils.list_all_bots' command is adjusted to omit
modules with SyntaxErrors. This is consistent with the
'intelmqctl check' command behaviour, what is the only
one place this function is used.
closes: certtools#2177
The command 'intelmqctl check' can now handle SyntaxError
caused in bot's code without crashing. In addition,
the command got first unittests.
The 'utils.list_all_bots' command is adjusted to omit
modules with SyntaxErrors. This is consistent with the
'intelmqctl check' command behaviour, what is the only
one place this function is used.
closes: certtools#2177
intelmqctl check
tries 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 check
to 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.
The text was updated successfully, but these errors were encountered: