summaryrefslogtreecommitdiff
path: root/PRESUBMIT.py
diff options
context:
space:
mode:
Diffstat (limited to 'PRESUBMIT.py')
-rw-r--r--PRESUBMIT.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index 819c4e64fd..111abb03b0 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