Skip to content

Fix a couple None-defaults on request.args.get() - #6092

Closed
quis wants to merge 1 commit into
mainfrom
request-args-get-none
Closed

quis wants to merge 1 commit into
mainfrom
request-args-get-none

Conversation

@quis

@quis quis commented Sep 15, 2026

Copy link
Copy Markdown
Member

Assuming request.args.get("foo") will always be a string is incorrect when no such query string parameter exists (it will be None). We should specify "" as the default so downstream code only has to handle strings.

Assuming `request.args.get("foo")` will always be a string is incorrect
when no such query string parameter exists (it will be `None`). We should
specify `""` as the default so downstream code only has to handle strings.
@quis

quis commented Sep 21, 2026

Copy link
Copy Markdown
Member Author

Closing in favour of #6105 and #6106

@quis quis closed this Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant