Forum Archive

KeyboardInterrupt exception

steffen84

Hi all,

In the following code input_alert() never throws an exception. From the documentation I would have expected that a KeyboardInterrupt exception is thrown when the dialog is canceled.

import console
console.clear()
try:
    console.input_alert('test')
except:
    print('exception')

Is this an error?

Steffen

omz

I can't reproduce this, it works as expected here. What iOS version and device are you using?

steffen84

iOS 6.1.3 on iPhone4

ccc

I also can NOT reproduce this error on an iPhone 4 (model: MC605B/A) running iOS 6.1.3 (10B329).

steffen84

That is strange. My model is MC605DN/A. The iOS version is the same. But I cannot imaging that this is hardware dependend.

Other exceptions (e.g. from sqlite) work as expected.

steffen84

Is it possible to enable a debug mode or some logging to further investigate this issue?

Or is the code of the console module publicly available?

steffen84

Solved in Pythonista 1.4