Auto merge of #2488 - micbou:extra-conf-requests, r=puremourning
[READY] Handle server exceptions from loading/ignoring extra conf
Since PR #2453, we don't catch anymore exceptions raised from loading or ignoring a `.ycm_extra_conf.py` file. For instance, loading this extra conf:
```python
raise Exception
```
will result in a Python traceback inside Vim. This is fixed by catching the `UnknownExtraConf` exception in its own block (as [it was before](48b7ccef76/python/ycm/client/event_notification.py (L64-L73)
)).
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/2488)
<!-- Reviewable:end -->
This commit is contained in:
commit
3fde57b029
@ -214,6 +214,7 @@ def HandleServerException( display = True, truncate = False ):
|
||||
with HandleServerException():
|
||||
response = BaseRequest.PostDataToHandler( ... )
|
||||
"""
|
||||
try:
|
||||
try:
|
||||
yield
|
||||
except UnknownExtraConf as e:
|
||||
|
Loading…
Reference in New Issue
Block a user