style: Format code with linter

This commit is contained in:
Paul Gauthier (aider) 2024-08-12 09:51:04 -07:00
parent 55b7089766
commit ec63642666

View file

@ -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