SeattleTestbed / attic

ARCHIVAL: Full mirror of SeattleTestbed's SVN in early 2014. We use GitHub since!
MIT License
0 stars 1 forks source link

mistype a key name in Seash leads to tracebacks #1337

Closed choksi81 closed 10 years ago

choksi81 commented 10 years ago

When a user typed the key name wrong, the output of Seash should be nicer instead of resulting to a traceback. E.g.,

> loadkeys ../ajksdf.p
Traceback (most recent call last):
  File "seash.py", line 267, in command_loop
  File "/Users/justincappos/Downloads/sensor/seattle_demokit/seash_dictionary.py", line 2109, in command_dispatch
  File "/Users/justincappos/Downloads/sensor/seattle_demokit/command_callbacks.py", line 1520, in loadkeys_keyname
  File "/Users/justincappos/Downloads/sensor/seattle_demokit/rsa", line 719, in rsa_file_to_privatekey
  File "/Users/justincappos/Downloads/sensor/seattle_demokit/emulfile.py", line 179, in emulated_open
  File "/Users/justincappos/Downloads/sensor/seattle_demokit/emulfile.py", line 291, in __init__
FileNotFoundError: Cannot openfile non-existent file "../ajksdf.p.privatekey" without creating it!
 !> loadkeys ../ajksdf
choksi81 commented 10 years ago

Attachments: https://github.com/SeattleTestbed/attic/blob/master/TICKET_ATTACHMENTS/1337.diff