mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-17 19:52:25 +03:00
Get rid of debug code.
Signed-off-by: James Tanner <tanner.jc@gmail.com>
This commit is contained in:
parent
93b677cbb6
commit
e3bab57407
|
@ -162,7 +162,6 @@ class ValidationError(APIException):
|
||||||
# For validation failures, we may collect many errors together,
|
# For validation failures, we may collect many errors together,
|
||||||
# so the details should always be coerced to a list if not already.
|
# so the details should always be coerced to a list if not already.
|
||||||
if isinstance(detail, str):
|
if isinstance(detail, str):
|
||||||
#import pdb; pdb.set_trace()
|
|
||||||
detail = [detail % params]
|
detail = [detail % params]
|
||||||
elif isinstance(detail, ValidationError):
|
elif isinstance(detail, ValidationError):
|
||||||
detail = detail.detail
|
detail = detail.detail
|
||||||
|
@ -172,7 +171,6 @@ class ValidationError(APIException):
|
||||||
if isinstance(detail_item, ValidationError):
|
if isinstance(detail_item, ValidationError):
|
||||||
final_detail += detail_item.detail
|
final_detail += detail_item.detail
|
||||||
else:
|
else:
|
||||||
#import pdb; pdb.set_trace()
|
|
||||||
final_detail += [detail_item % params if isinstance(detail_item, str) else detail_item]
|
final_detail += [detail_item % params if isinstance(detail_item, str) else detail_item]
|
||||||
detail = final_detail
|
detail = final_detail
|
||||||
elif not isinstance(detail, dict) and not isinstance(detail, list):
|
elif not isinstance(detail, dict) and not isinstance(detail, list):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user