Skip to content

Commit

Permalink
FIX: Fixed a warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
s-kostyuk committed Mar 3, 2018
1 parent 2a3e1f7 commit fa1e8dd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dpl/api/rest_api/messages_subapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ async def messages_post_handler(request: web.Request) -> web.Response:
:param request: request to be processed
:return: a response to request
"""
warnings.warn(PendingDeprecationWarning)
warnings.warn(
"/messages/ path is deprecated. Use /things/{id}/execute endpoint instead",
PendingDeprecationWarning
)

request_body = await request.json()

Expand Down

0 comments on commit fa1e8dd

Please sign in to comment.