This way one only drops into the REPL once. (It's possible
that it may be useful to configure this behavior, but I think
that's lily-gilding.)
Fixes: #10529
Signed-off-by: Dan Mick <dan.mick@redhat.com>
exc = sys.exc_info()
# FIXME this needs to be more generic
if config.ctx and config.ctx.config.get('interactive-on-error'):
+ config.ctx.config['interactive-on-error'] = False
from .task import interactive
log.warning('Saw failure, going into interactive mode...')
interactive.task(ctx=config.ctx, config=None)
ctx.summary['sentry_event'] = event_url
if ctx.config.get('interactive-on-error'):
+ ctx.config['interactive-on-error'] = False
from .task import interactive
log.warning('Saw failure during task execution, going into interactive mode...')
interactive.task(ctx=ctx, config=None)