From 84998b5b5fb9c5cda206ec3ed2fe731bc9cc8818 Mon Sep 17 00:00:00 2001 From: micbou Date: Mon, 23 Oct 2017 20:53:14 +0200 Subject: [PATCH] Fix bare except statement Use Exception to catch all exceptions instead of a bare except statement. --- python/ycm/tests/client/completion_request_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/ycm/tests/client/completion_request_test.py b/python/ycm/tests/client/completion_request_test.py index c3bd1aed..45881cf1 100644 --- a/python/ycm/tests/client/completion_request_test.py +++ b/python/ycm/tests/client/completion_request_test.py @@ -39,7 +39,7 @@ class ConvertCompletionResponseToVimDatas_test( object ): try: eq_( expected_vim_data, vim_data ) - except: + except Exception: print( "Expected:\n'{0}'\nwhen parsing:\n'{1}'\nBut found:\n'{2}'".format( expected_vim_data, completion_data,