mirror of
https://github.com/simonw/datasette.git
synced 2026-09-02 14:44:07 +02:00
Apply ruff 0.16 and black fixes
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012U7coQfVu8nK2R4q2mCULA
This commit is contained in:
parent
90e9809810
commit
ec4866bea4
2 changed files with 4 additions and 3 deletions
|
|
@ -304,7 +304,7 @@ class AsgiLifespan:
|
|||
try:
|
||||
for fn in self.on_startup:
|
||||
await fn()
|
||||
except Exception as e:
|
||||
except Exception as e: # noqa: BLE001
|
||||
await send(
|
||||
{"type": "lifespan.startup.failed", "message": str(e)}
|
||||
)
|
||||
|
|
@ -314,7 +314,7 @@ class AsgiLifespan:
|
|||
try:
|
||||
for fn in self.on_shutdown:
|
||||
await fn()
|
||||
except Exception as e:
|
||||
except Exception as e: # noqa: BLE001
|
||||
await send(
|
||||
{"type": "lifespan.shutdown.failed", "message": str(e)}
|
||||
)
|
||||
|
|
|
|||
|
|
@ -11,9 +11,10 @@ These exercise Datasette._startup_sequence() via three different callers:
|
|||
|
||||
import asyncio
|
||||
import contextlib
|
||||
import sqlite3
|
||||
|
||||
import httpx
|
||||
import pytest
|
||||
import sqlite3
|
||||
|
||||
from datasette import hookimpl
|
||||
from datasette.app import Datasette
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue