Katee / quietnet

Simple chat program that communicates using inaudible sounds
https://kate.io/
MIT License
2.94k stars 203 forks source link

Send.py crashes and exits on bad input #2

Closed tklovett closed 10 years ago

tklovett commented 10 years ago

On Mac OS X using iTerm. Hit up arrow to get ^[[A. Hit enter. Following error:

> ^[[A
Traceback (most recent call last):
  File "send.py", line 56, in <module>
    pattern = psk.encode(message)
  File "/Users/tklovett/code/quietnet/psk.py", line 106, in encode
    result.append(psk[c] )
KeyError: '\x1b'
Katee commented 10 years ago

Good catch! Fixed in 467c2e1.