diff --git a/src/aiida/cmdline/commands/cmd_computer.py b/src/aiida/cmdline/commands/cmd_computer.py index 820f762cf..f50c2d59b 100644 --- a/src/aiida/cmdline/commands/cmd_computer.py +++ b/src/aiida/cmdline/commands/cmd_computer.py @@ -634,7 +634,7 @@ def _dry_run_callback(pks): if pks: echo.echo_report('The nodes with the following pks would be deleted: ' + ' '.join(map(str, pks))) echo.echo_warning(f'YOU ARE ABOUT TO DELETE {len(pks)} NODES! THIS CANNOT BE UNDONE!') - click.confirm('Shall I continue?', default=False) + confirm = click.confirm('Shall I continue?', default=False) if not confirm: raise click.Abort return not confirm