We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
EOFError
KeyboardInterrupt
1 parent 2bcf15d commit f3e2742Copy full SHA for f3e2742
piduck.py
@@ -99,7 +99,10 @@ def main():
99
file1.close()
100
else:
101
while True:
102
- line = input()
+ try:
103
+ line = input()
104
+ except KeyboardInterrupt:
105
+ break
106
if not line:
107
break
108
pharse(line.strip(), [[], []], False)
@@ -133,5 +136,8 @@ def main():
133
136
except ModuleNotFoundError:
134
137
eprint('Keymap "' + key_layout + '" could not be found')
135
138
exit(3)
139
+try:
140
main()
- exit(0)
141
+except KeyboardInterrupt:
142
+ pass
143
+exit(0)
0 commit comments