diff options
| author | Dennis Fink | 2026-11-13 20:26:18 +0100 |
|---|---|---|
| committer | Dennis Fink | 2026-11-13 20:26:18 +0100 |
| commit | 22f453be12822f1c26f2ba6e229cdc8840ffaa92 (patch) | |
| tree | f71fac40338d451334fa3aac6bc15213564cd17f /webmentions_ssg/views/endpoint.py | |
| parent | 8b6326f070c941510ebf1d27e53f501610406ea4 (diff) | |
| download | webmentions-ssg-22f453be12822f1c26f2ba6e229cdc8840ffaa92.tar.gz webmentions-ssg-22f453be12822f1c26f2ba6e229cdc8840ffaa92.zip | |
refactor(core): remove redundant abort returns
Call Flask `abort` directly in view guards since it always raises and
never returns, simplifying error branches without changing response
behavior.
Diffstat (limited to 'webmentions_ssg/views/endpoint.py')
| -rw-r--r-- | webmentions_ssg/views/endpoint.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webmentions_ssg/views/endpoint.py b/webmentions_ssg/views/endpoint.py index a94310e..e3f1368 100644 --- a/webmentions_ssg/views/endpoint.py +++ b/webmentions_ssg/views/endpoint.py @@ -147,7 +147,7 @@ def status(identifier: uuid.UUID) -> ResponseReturnValue: webmention = db.session.get(ReceivedWebmention, identifier) if webmention is None: - return abort(404) + abort(404) return render_template( "status.html", title="Webmention status", webmention=webmention |
