Handle exceptions from loading/ignoring extra conf
This commit is contained in:
parent
8161d35030
commit
deddca8927
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user