Skip to content

Commit 4db2f00

Browse files
authored
Merge pull request #517 from jacksec-engineer/fix(code-quality)-finding-autofix-b9388573
fix(code-quality): Fix for Explicit returns mixed with implicit (fall through) returns
2 parents a219e51 + 216837e commit 4db2f00

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)