| Index: PRESUBMIT.py
|
| diff --git a/PRESUBMIT.py b/PRESUBMIT.py
|
| index 819c4e64fdcd2c4592c0332f61bd4c1141e1e165..111abb03b0dfdaa9500b66a287ec997a6da0d16c 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, does pdfium/buildtools/checkdeps exist?')]
|
| finally:
|
| # Restore sys.path to what it was before.
|
| sys.path = original_sys_path
|
|
|