Skip to content

Commit

Permalink
Remove bare except
Browse files Browse the repository at this point in the history
  • Loading branch information
puremourning committed Oct 26, 2017
1 parent f1d8a59 commit 2b266de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ycmd/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,9 @@ def ReceiveMessages():
request_data = RequestWrap( request.json )
try:
completer = _GetCompleterForRequestData( request_data )
except:
# No semantic completer for this filetype, don't requery
except Exception:
# No semantic completer for this filetype, don't requery. This is not an
# error.
return _JsonResponse( False )

return _JsonResponse( completer.PollForMessages( request_data ) )
Expand Down

0 comments on commit 2b266de

Please sign in to comment.