From 6f61aff7350a1f4ecfd1ac59f341427dd32a2c75 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Thu, 6 Feb 2025 14:06:36 -0800 Subject: [PATCH] fix: Replace bare except and reorganize imports in io.py --- aider/io.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/aider/io.py b/aider/io.py index 4c8f812e6..e5d4f0e1e 100644 --- a/aider/io.py +++ b/aider/io.py @@ -20,7 +20,7 @@ def restore_multiline(func): self.multiline_mode = False try: return func(self, *args, **kwargs) - except: + except Exception: raise finally: self.multiline_mode = orig_multiline @@ -48,7 +48,6 @@ from rich.style import Style as RichStyle from rich.text import Text from aider.mdstream import MarkdownStream - from .dump import dump # noqa: F401 from .utils import is_image_file