console.py: Fix #21 (IndexError caused by clearing sys.argv)
This commit is contained in:
parent
e1bb049ef0
commit
11753b9e92
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue