From 17716ff51f60129953f0bd1a25618f08b5fcdb20 Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Mon, 23 Sep 2013 14:34:26 -0700 Subject: [PATCH] Whitespace fix --- python/ycm/client/base_request.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python/ycm/client/base_request.py b/python/ycm/client/base_request.py index 650e512b..f5f4840c 100644 --- a/python/ycm/client/base_request.py +++ b/python/ycm/client/base_request.py @@ -43,8 +43,9 @@ class BaseRequest( object ): def PostDataToHandler( self, data, handler ): response = requests.post( _BuildUri( handler ), - data = json.dumps( data ), - headers = HEADERS ) + data = json.dumps( data ), + headers = HEADERS ) + response.raise_for_status() if response.text: return response.json()