def __str__(self):
        if ROA_DJANGO_ERRORS and '<body>' in self.msg:
            return self.parse_django_error()
        return self.msg
dataset/ETHPy150Open charles-vdulac/django-roa/django_roa/db/exceptions.py/ROAException.__str__/original