Skip to content

Commit 216837e

Browse files
fix(code-quality): explicit returns mixed with implicit (fall-through) returns
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent a219e51 commit 216837e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

app/app.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,9 @@ def input_url():
138138

139139
case _:
140140
# Catch all to return 500 error for any unexpected cases
141-
abort(HTTPStatus.INTERNAL_SERVER_ERROR)
142-
return None
141+
return internal_server_error(HTTPStatus.INTERNAL_SERVER_ERROR)
142+
143+
return internal_server_error(HTTPStatus.INTERNAL_SERVER_ERROR)
143144

144145

145146
@application.route("/<arg>/stats")

0 commit comments

Comments
 (0)