Skip to content

Commit

Permalink
Replace abort() with raise SanicException (#1520)
Browse files Browse the repository at this point in the history
* Replace `abort()` with `raise SanicException`

This is for compatibility with newly-released Sanic 21.12 which removed the deprecated `abort()` in sanic-org/sanic#2306. Before that, it was a simple wrapper around `raise SanicException` (https://github.com/sanic-org/sanic/blob/523db190a732177eda5a641768667173ba2e2452/sanic/exceptions.py#L262-L265), so this change makes it explicit and removes the dependency on `abort()`.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Add RELEASE.md

* Bump sanic from 21.9.3 to 21.12.0

Bumps [sanic](https://github.com/sanic-org/sanic) from 21.9.3 to 21.12.0.
- [Release notes](https://github.com/sanic-org/sanic/releases)
- [Changelog](https://github.com/sanic-org/sanic/blob/main/CHANGELOG.rst)
- [Commits](sanic-org/sanic@v21.9.3...v21.12.0)

---
updated-dependencies:
- dependency-name: sanic
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update sanic-testing to 0.8.2

(0.7.0 uses the old `app.test_client` attribute which has been deprecated in
Sanic 21.12).

* Update tests

* Skip sanic tests on windows

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Patrick Arminio <patrick.arminio@gmail.com>
  • Loading branch information
4 people committed Jan 5, 2022
1 parent 7bee794 commit 2a958ae
Show file tree
Hide file tree
Showing 7 changed files with 232 additions and 148 deletions.
3 changes: 3 additions & 0 deletions RELEASE.md
@@ -0,0 +1,3 @@
Release type: patch

Fix compatibility with Sanic 21.12

0 comments on commit 2a958ae

Please sign in to comment.