PyInquirer
                                
                                
                                
                                    PyInquirer copied to clipboard
                            
                            
                            
                        'KeyError' when clicking on an item in list with mouse
On MacOS, when I click with the mouse on any item of a PyInquirer list I get a KeyError thrown; this happens both in Terminal and in iTerm2. I have looked through the source code and can't find a KeyError explicitly being thrown, so it must be inside some subroutine.
Following is an example error that happens when I click on the "Test" item:
Source code:
Before clicking:
After clicking:

Same on Fedora with version 1.0.3.
I'll look into this
The solution is already in the pull-request! thank you!
@Tioz90 Can you install from the repo directly to check if your error is fixed
@CITGuru it doesn't crash anymore but I'm not sure if it's correctly populating the dictionary as clicking displays in PyInquirer but my program doesn't register it.  I'll need to look into this.
Ex: clicking on elements registers in PyInquirer but no action is taken by my program

Clicking on a separator throws an error in my Switch so I guess something is being returned. I'[ll get back to you.
okay, will be waiting
Hi, I tested it and it's still not fixed
Confirmed fixed on Ubuntu as of 918f8e14f
@Tioz90 which verision did you test on? Latest tag (1.0.3) doesn't have the fix yet, have you installed the latest version from git?
@Tioz90 Can you test from that #37
@Tioz90 Are you still having this issue? Sorry for the late reply
I don’t know, I abandoned the software I was developing months ago.
Oh, I get. This has been fixed already in the current master. I will be releasing the new version to PyPI
So I am developing an app with your library. Thus I will test when the new version is released. My current fix is (what we should anyway do) to use .get("key", "default value").
Thus a fix will look like this: https://github.com/cobbler/libcobblersignatures/commit/0a20f4abb291be2104576d7bb578473e6ebc4c54
@CITGuru I'm on version 1.0.3, which seems latest, and still getting the error on click. What am I missing?
@CITGuru Same here, v1.0.3 and the error is present.
Still affects 1.0.3.