mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
Prevent printing stack trace in compose mode on ctrl+c.
This commit is contained in:
parent
fa886151f6
commit
b0fe7cd330
1 changed files with 4 additions and 1 deletions
|
@ -81,7 +81,10 @@ def py23_input(msg=""):
|
|||
|
||||
def py23_read(msg=""):
|
||||
STDERR.write(u(msg))
|
||||
return STDIN.read()
|
||||
try:
|
||||
return STDIN.read()
|
||||
except KeyboardInterrupt:
|
||||
sys.exit(0)
|
||||
|
||||
def yesno(prompt, default=True):
|
||||
prompt = prompt.strip() + (" [Y/n]" if default else " [y/N]")
|
||||
|
|
Loading…
Add table
Reference in a new issue