Tethik / flask-session-captcha

A captcha implemention for flask
MIT License
24 stars 8 forks source link

Remove unneeded `.get(..., None)` #26

Closed GuillaumeGomez closed 2 years ago

GuillaumeGomez commented 2 years ago

.get() returns None if the item wasn't found, which is its main advantage over indexing with [] which throws an error when the key wasn't found.

Tethik commented 2 years ago

Thanks for the patch! Since this does not change the underlying behaviour, I won't push this to a release yet.

GuillaumeGomez commented 2 years ago

No problem. I need to send a more important fix anyway.