summaryrefslogtreecommitdiffstats
path: root/tools/vim
diff options
context:
space:
mode:
authoreroman <eroman@chromium.org>2015-01-26 12:46:54 -0800
committerCommit bot <commit-bot@chromium.org>2015-01-26 20:48:30 +0000
commitcf9eb1188b4fed3ad3f3a187e965625fb018735a (patch)
tree80025915c28e74b2ed20bdf8447875a7d87b18a1 /tools/vim
parentd04be4fda0224a42f24a0e1132c057c4da2fa833 (diff)
downloadchromium_src-cf9eb1188b4fed3ad3f3a187e965625fb018735a.zip
chromium_src-cf9eb1188b4fed3ad3f3a187e965625fb018735a.tar.gz
chromium_src-cf9eb1188b4fed3ad3f3a187e965625fb018735a.tar.bz2
Remove reference to FileNotFoundError, as it is not available in python 2.
NOTRY=true Review URL: https://codereview.chromium.org/874403003 Cr-Commit-Position: refs/heads/master@{#313128}
Diffstat (limited to 'tools/vim')
-rw-r--r--tools/vim/chromium.ycm_extra_conf.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/vim/chromium.ycm_extra_conf.py b/tools/vim/chromium.ycm_extra_conf.py
index 2901c54..76fce67 100644
--- a/tools/vim/chromium.ycm_extra_conf.py
+++ b/tools/vim/chromium.ycm_extra_conf.py
@@ -56,7 +56,7 @@ def SystemIncludeDirectoryFlags():
with open(os.devnull, 'rb') as DEVNULL:
output = subprocess.check_output(['clang', '-v', '-E', '-x', 'c++', '-'],
stdin=DEVNULL, stderr=subprocess.STDOUT)
- except (FileNotFoundError, subprocess.CalledProcessError):
+ except:
return []
includes_regex = r'#include <\.\.\.> search starts here:\s*' \
r'(.*?)End of search list\.'