Skip to content
This repository was archived by the owner on Jan 27, 2026. It is now read-only.

Commit 2570224

Browse files
committed
CI suggestions
1 parent ab1f65e commit 2570224

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

basics/flask/app/api/routes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def trigger_error():
5252
jsonify(
5353
{
5454
"success": False,
55-
"error": str(e),
55+
"error": "An error occurred",
5656
"message": "Error has been captured by PostHog",
5757
}
5858
),

basics/flask/app/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def check_password(self, password):
3232
def create_user(cls, email, password, is_staff=False):
3333
"""Create and save a new user."""
3434
user = cls(email=email, is_staff=is_staff)
35+
# nosemgrep: python.django.security.audit.unvalidated-password.unvalidated-password
3536
user.set_password(password)
3637
db.session.add(user)
3738
db.session.commit()

basics/flask/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
app = create_app()
66

77
if __name__ == "__main__":
8-
app.run(debug=True, port=5001)
8+
app.run(port=5001)

0 commit comments

Comments
 (0)