Opened 8 years ago
Closed 8 years ago
#28064 closed Bug (fixed)
MultiValueDictKeyError double quotes missing str keys in error messages
Description ¶
With a builtin dict a KeyError error message looks like this:
>>> {}['key'] #... KeyError: 'key'
However, with MultiValueDict the error message looks like this:
MultiValueDict()['key'] #... django.utils.datastructures.MultiValueDictKeyError: "'key'"
I was a bit surprised when I first noticed this, as at first glance it looked as if I had somehow quoted some keys ('key' rather than just key) before looking them up in a dictionary.
Note:
See TracTickets
for help on using tickets.
PR