diff --git a/pwncat/commands/sessions.py b/pwncat/commands/sessions.py index dbed075..88f93c5 100644 --- a/pwncat/commands/sessions.py +++ b/pwncat/commands/sessions.py @@ -73,6 +73,7 @@ class Command(CommandDefinition): if args.session_id < 0 or args.session_id >= len(manager.sessions): console.log(f"[red]error[/red]: {args.session_id}: no such session!") + return session = manager.sessions[args.session_id]