Saturday, September 5, 2015

Re: Would defining MultiValueDictKeyError in django.core.exceptions be a good idea?

The docs mention, "This is a subclass of Python's standard ``KeyError``, so you can stick to catching ``KeyError``." Does this work for you?

On Saturday, September 5, 2015 at 8:24:29 AM UTC-4, Aditya Sarode wrote:
Hi,

MultiValueDictKeyError has to be imported from django.utils.datastructures now.
As a user, it was difficult to find the exact location of MultiValueDictKeyError. Importing it from django.core.exceptions would be easier from the user's perspective. I was curious to know if there was any specific reason for declaring it in django.utils.datastructures.py

Thank You,
Aditya

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/66621371-41e1-4446-b3a7-66c41813f7ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment