fix: move input outside try block to allow Ctrl+C exit
This commit is contained in:
@@ -152,9 +152,9 @@ if __name__ == '__main__':
|
|||||||
else:
|
else:
|
||||||
agent.inc_out = True
|
agent.inc_out = True
|
||||||
while True:
|
while True:
|
||||||
|
q = input('> ').strip()
|
||||||
|
if not q: continue
|
||||||
try:
|
try:
|
||||||
q = input('> ').strip()
|
|
||||||
if not q: continue
|
|
||||||
dq = agent.put_task(q, source='user')
|
dq = agent.put_task(q, source='user')
|
||||||
while True:
|
while True:
|
||||||
item = dq.get()
|
item = dq.get()
|
||||||
|
|||||||
Reference in New Issue
Block a user