From 11753b9e92f62969d2704524a6274462aef459c6 Mon Sep 17 00:00:00 2001 From: Jan Holthuis Date: Tue, 20 Nov 2018 07:35:09 +0100 Subject: [PATCH] console.py: Fix #21 (IndexError caused by clearing sys.argv) --- pappyproxy/console.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pappyproxy/console.py b/pappyproxy/console.py index 892f59d..0e9987c 100644 --- a/pappyproxy/console.py +++ b/pappyproxy/console.py @@ -28,7 +28,7 @@ def print_errors(func): def interface_loop(client): cons = Cmd(client=client) load_interface(cons) - sys.argv = [] + sys.argv = sys.argv[:1] cons.cmdloop() def load_interface(cons):