Skip to content

0.9.4: If the Sanic server emits a "before_server_start" event, use this to …

Compare
Choose a tag to compare
@ashleysommer ashleysommer released this 19 Jan 00:31
· 15 commits to master since this release

If the Sanic server emits a "before_server_start" event, use this to initialize SPF, instead of the "after_server_start" event.
- This solves a potential race-condition introduced in SPF v0.8.2, when this was reversed.
Changed the RuntimeError thrown in that circumstance to a Sanic ServerError
- This may make the error easier to catch and filter. Also may change what the end-user sees when this occurs.