Skip to content
Snippets Groups Projects
Commit 72d572c1 authored by Georges Racinet's avatar Georges Racinet
Browse files

errors: removed now useless no_response()

parent db2f3f60
No related branches found
No related tags found
1 merge request!128Exception-style error returning
......@@ -46,15 +46,3 @@
logger.error(msg)
context.set_details(msg)
return response_cls()
def no_response():
"""Placeholder to use the above error functions without a response class.
To use in conjunction with :class:`ServiceError` exceptions.
This is a transitional compatibility layer, less confusing than using
an actual Response class when we don't care about response yet in error
treatment.
:returns: ``None``
"""
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment