Message56524
According to me, the Ctrl-C is not managed correctly in cmd.py. Ctrl-C
generates a a KeyboardInterrupt exceptions, and only EOFError is
managed. I propose to manage KeyboardInterrupt on line 130:
print 'are you sure you want to exit? y/n'
answer =''
while (answer != 'y') & (answer != 'n'):
answer = raw_input()
if answer == 'y':
exit(0)
Here is attached my new cmd.py
Hope ti will help. |
| File name |
Uploaded |
|
cmd.py
|
stephbul,
2007-10-18.12:51:56
|
|
| Date |
User |
Action |
Args |
| 2007-10-18 12:51:56 | stephbul | set | spambayes_score: 0.0353672 -> 0.0353672 recipients:
+ stephbul |
| 2007-10-18 12:51:56 | stephbul | set | spambayes_score: 0.0353672 -> 0.0353672 messageid: <1192711916.5.0.235687394478.issue1294@psf.upfronthosting.co.za> |
| 2007-10-18 12:51:56 | stephbul | link | issue1294 messages |
| 2007-10-18 12:51:56 | stephbul | create | |
|