Index: build/android/pylib/local/device/local_device_environment.py |
diff --git a/build/android/pylib/local/device/local_device_environment.py b/build/android/pylib/local/device/local_device_environment.py |
index 86ffc5f59daa62457dd32907593ae01eac36561a..d5536c77c1312eb482744bf07d334f902c212421 100644 |
--- a/build/android/pylib/local/device/local_device_environment.py |
+++ b/build/android/pylib/local/device/local_device_environment.py |
@@ -94,7 +94,9 @@ class LocalDeviceEnvironment(environment.Environment): |
self._skip_clear_data = args.skip_clear_data |
self._target_devices_file = args.target_devices_file |
self._tool_name = args.tool |
- self._trace_output = args.trace_output |
+ self._trace_output = None |
+ if hasattr(args, 'trace_output'): |
+ self._trace_output = args.trace_output |
devil_chromium.Initialize( |
output_directory=constants.GetOutDirectory(), |