mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-16 11:12:21 +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,
|
||||
# so the details should always be coerced to a list if not already.
|
||||
if isinstance(detail, str):
|
||||
#import pdb; pdb.set_trace()
|
||||
detail = [detail % params]
|
||||
elif isinstance(detail, ValidationError):
|
||||
detail = detail.detail
|
||||
|
@ -172,7 +171,6 @@ class ValidationError(APIException):
|
|||
if isinstance(detail_item, ValidationError):
|
||||
final_detail += detail_item.detail
|
||||
else:
|
||||
#import pdb; pdb.set_trace()
|
||||
final_detail += [detail_item % params if isinstance(detail_item, str) else detail_item]
|
||||
detail = final_detail
|
||||
elif not isinstance(detail, dict) and not isinstance(detail, list):
|
||||
|
|
Loading…
Reference in New Issue
Block a user