diff --git a/aider/scrape.py b/aider/scrape.py index 0ffd12118..f16e0ef16 100755 --- a/aider/scrape.py +++ b/aider/scrape.py @@ -144,7 +144,9 @@ class Scraper: try: content = page.content() - mime_type = response.header_value("content-type").split(";")[0] if response else None + mime_type = ( + response.header_value("content-type").split(";")[0] if response else None + ) except playwright._impl._errors.Error as e: self.print_error(f"Error retrieving page content: {str(e)}") content = None