Inquirer Prompt crashes when returning to menu
domwhewell opened this issue · 0 comments
domwhewell commented
Hi All,
I was wondering if someone could assist with this. In my program Im using inquirer lists to display menu's. Im using while loops to do this however when it returns back to the menu after running other tasks inquirer crashes with this stacktrace;
Traceback (most recent call last):
File "test-lsa.py", line 40, in <module>
answer = inquirer.prompt(questions)
File "/usr/local/lib/python3.9/dist-packages/inquirer/prompt.py", line 14, in prompt
answers[question.name] = render.render(question, answers)
File "/usr/local/lib/python3.9/dist-packages/inquirer/render/console/__init__.py", line 44, in render
return self._event_loop(render)
File "/usr/local/lib/python3.9/dist-packages/inquirer/render/console/__init__.py", line 57, in _event_loop
self._process_input(render)
File "/usr/local/lib/python3.9/dist-packages/inquirer/render/console/__init__.py", line 108, in _process_input
ev = self._event_gen.next()
File "/usr/local/lib/python3.9/dist-packages/inquirer/events.py", line 22, in next
return KeyPressed(self._key_gen())
File "/usr/local/lib/python3.9/dist-packages/readchar/readchar.py", line 89, in readkey
if ord(c1) != 0x1b:
TypeError: ord() expected a character, but string of length 0 found
Edit: Changing the code it only seems to do this when a certain program is run 'crackmapexec' any other program will result in inquirer running sucessfully