Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: tools/telemetry/telemetry/wpr/archive_info.py

Issue 849293003: Adding assert for better debugging. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added debug message Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2cf54823da51cbf062ae9ac109a8dad5189b1680..1e2691b28e3af1f82dfa1be93ff85e5d0e80a473 100644
--- a/tools/telemetry/telemetry/wpr/archive_info.py
+++ b/tools/telemetry/telemetry/wpr/archive_info.py
@@ -76,6 +76,9 @@ class WprArchiveInfo(object):
if not self._bucket:
logging.warning('User story set in %s has no bucket specified, and '
'cannot be downloaded from cloud_storage.', )
+ return
+ assert 'archives' in self._data, 'Invalid data format in %s. \'archives\'' \
+ ' field is needed' % self._file_path
for archive_path in self._data['archives']:
archive_path = self._WprFileNameToPath(archive_path)
try:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698