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