Index: tools/telemetry/telemetry/wpr/archive_info.py |
diff --git a/tools/telemetry/telemetry/wpr/archive_info.py b/tools/telemetry/telemetry/wpr/archive_info.py |
index c94bd7ba6f6117f1a295484ed4df843cf52115e2..2cf54823da51cbf062ae9ac109a8dad5189b1680 100644 |
--- a/tools/telemetry/telemetry/wpr/archive_info.py |
+++ b/tools/telemetry/telemetry/wpr/archive_info.py |
@@ -73,12 +73,9 @@ class WprArchiveInfo(object): |
exists. |
""" |
# Download all .wpr files. |
- if self._data: |
aiolos (Not reviewing)
2015/01/13 19:42:58
I believe this should actually be
if not self._da
nednguyen
2015/01/13 19:58:51
lizeb@'s point is self._data cannot be None since
aiolos (Not reviewing)
2015/01/13 20:18:57
Ah, I missed that comment. We might rely on this n
|
- return |
if not self._bucket: |
logging.warning('User story set in %s has no bucket specified, and ' |
'cannot be downloaded from cloud_storage.', ) |
nednguyen
2015/01/13 18:20:59
Can you add: assert 'archives' in self._data, "Inv
Benoit L
2015/01/13 18:24:39
Acknowledged.
The constructor would throw without
nednguyen
2015/01/13 18:38:14
I prefer assertion since it gives a clearer debugg
|
- |
for archive_path in self._data['archives']: |
archive_path = self._WprFileNameToPath(archive_path) |
try: |