Index: build/android/pylib/constants/__init__.py |
diff --git a/build/android/pylib/constants/__init__.py b/build/android/pylib/constants/__init__.py |
index 6e92f6d322de45d3bdbcc95d88cfa2e9337bcd85..1c7a0a3a88b38406cba555838976c20333cd3fde 100644 |
--- a/build/android/pylib/constants/__init__.py |
+++ b/build/android/pylib/constants/__init__.py |
@@ -229,7 +229,8 @@ def GetBuildType(): |
try: |
return os.environ['BUILDTYPE'] |
except KeyError: |
- raise Exception('The BUILDTYPE environment variable has not been set') |
+ raise EnvironmentError( |
+ 'The BUILDTYPE environment variable has not been set') |
def SetBuildType(build_type): |