From 3e96fda71a0a02bb96189eafe640c9e9fab8b95b Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Tue, 23 Jan 2024 10:45:58 -0800 Subject: [PATCH] catch shutdown errors --- aider/mdstream.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/aider/mdstream.py b/aider/mdstream.py index b04cd0252..947777651 100755 --- a/aider/mdstream.py +++ b/aider/mdstream.py @@ -59,7 +59,10 @@ class MarkdownStream: def __del__(self): if self.live: - self.live.stop() + try: + self.live.stop() + except Exception: + pass def update(self, text, final=False): now = time.time()