Handle exceptions from loading/ignoring extra conf

This commit is contained in:
micbou 2017-01-03 15:29:12 +01:00
parent 8161d35030
commit deddca8927
No known key found for this signature in database
GPG Key ID: C7E8FD1F3BDA1E05

View File

@ -215,12 +215,13 @@ def HandleServerException( display = True, truncate = False ):
response = BaseRequest.PostDataToHandler( ... ) response = BaseRequest.PostDataToHandler( ... )
""" """
try: try:
yield try:
except UnknownExtraConf as e: yield
if vimsupport.Confirm( str( e ) ): except UnknownExtraConf as e:
_LoadExtraConfFile( e.extra_conf_file ) if vimsupport.Confirm( str( e ) ):
else: _LoadExtraConfFile( e.extra_conf_file )
_IgnoreExtraConfFile( e.extra_conf_file ) else:
_IgnoreExtraConfFile( e.extra_conf_file )
except Exception as e: except Exception as e:
_logger.exception( 'Error while handling server response' ) _logger.exception( 'Error while handling server response' )
if display: if display: