Index: PRESUBMIT.py |
diff --git a/PRESUBMIT.py b/PRESUBMIT.py |
index 819c4e64fdcd2c4592c0332f61bd4c1141e1e165..68f92b6510ca10abfad7120a2ec9ec61f189cecc 100644 |
--- a/PRESUBMIT.py |
+++ b/PRESUBMIT.py |
@@ -50,6 +50,9 @@ def _CheckUnwantedDependencies(input_api, output_api): |
import checkdeps |
from cpp_checker import CppChecker |
from rules import Rule |
+ except ImportError: |
+ return [output_api.PresubmitError( |
+ 'Unable to run checkdeps, check pdfium/buildtools/checkdeps exists.')] |
Tom Sepez
2016/04/05 16:42:02
nit: maybe "..., does pdfium/buildtools/checkdeps
dsinclair
2016/04/05 17:16:26
Done.
|
finally: |
# Restore sys.path to what it was before. |
sys.path = original_sys_path |