Skip to content

Commit

Permalink
Update base.py
Browse files Browse the repository at this point in the history
  • Loading branch information
idoshr committed Aug 9, 2024
1 parent dc9eafb commit dcffafc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flask_session/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def __init__(
# INTERNAL METHODS

def _generate_sid(self, session_id_length: int) -> str:
"""Generate a random session id."""
"""Generate a random session id. """
new_sid = secrets.token_urlsafe(session_id_length)
if self._retrieve_session_data(new_sid):
raise RuntimeError("Session ID already exists in the database.")
Expand Down

0 comments on commit dcffafc

Please sign in to comment.