refactor the crud & paginate
This commit is contained in:
@@ -19,7 +19,7 @@ class APIException(Exception):
|
||||
elif hasattr(e, 'detail'):
|
||||
self.detail = e.detail
|
||||
self.status_code = e.status_code if hasattr(e, 'status_code') else 500
|
||||
content += e.detail
|
||||
content += str(e.detail)
|
||||
else:
|
||||
self.detail = str(e)
|
||||
self.status_code = 500
|
||||
|
||||
Reference in New Issue
Block a user