def _clean_form(self):
        try:
            super(OAuthForm, self)._clean_form()
        except OAuthValidationError, e:
            self._errors.update(e.args[0])
Overriding the default cleaning behaviour for a shallow error dict.
dataset/ETHPy150Open caffeinehit/django-oauth2-provider/provider/forms.py/OAuthForm._clean_form