Permalink
Browse files

Handle exceptions from loading/ignoring extra conf

  • Loading branch information...
1 parent 8161d35 commit deddca89276a36645772c2fffa4ff8042b8dda4c @micbou micbou committed Jan 3, 2017
Showing with 7 additions and 6 deletions.
  1. +7 −6 python/ycm/client/base_request.py
@@ -215,12 +215,13 @@ def HandleServerException( display = True, truncate = False ):
response = BaseRequest.PostDataToHandler( ... )
"""
try:
- yield
- except UnknownExtraConf as e:
- if vimsupport.Confirm( str( e ) ):
- _LoadExtraConfFile( e.extra_conf_file )
- else:
- _IgnoreExtraConfFile( e.extra_conf_file )
+ try:
+ yield
+ except UnknownExtraConf as e:
+ if vimsupport.Confirm( str( e ) ):
+ _LoadExtraConfFile( e.extra_conf_file )
+ else:
+ _IgnoreExtraConfFile( e.extra_conf_file )
except Exception as e:
_logger.exception( 'Error while handling server response' )
if display:

0 comments on commit deddca8

Please sign in to comment.