diff options
-rwxr-xr-x | Demo/stdwin/python.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Demo/stdwin/python.py b/Demo/stdwin/python.py index e987eee..c43fd48 100755 --- a/Demo/stdwin/python.py +++ b/Demo/stdwin/python.py @@ -472,13 +472,14 @@ class Input: self.win.settitle(title) inputwindows.insert(0, self.win) try: - mainloop.mainloop() - except InputAvailable, (exc, val): # See do_exec above. - if exc: - raise exc, val - if val[-1:] == '\n': - val = val[:-1] - return val + try: + mainloop.mainloop() + except InputAvailable, (exc, val): # See do_exec above. + if exc: + raise exc, val + if val[-1:] == '\n': + val = val[:-1] + return val finally: del inputwindows[0] self.win.settitle(save_title) |