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

Unified Diff: gm/rebaseline_server/imagediffdb.py

Issue 221423003: rebaseline_server: display as much info as possible if expected/actual image is missing (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove extra import Created 6 years, 9 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
Index: gm/rebaseline_server/imagediffdb.py
diff --git a/gm/rebaseline_server/imagediffdb.py b/gm/rebaseline_server/imagediffdb.py
index 8328543c935d77bbdc011701d85356c78fe9270f..3b1eb3ebc032a804b444c453dd28f9ed4cc06307 100644
--- a/gm/rebaseline_server/imagediffdb.py
+++ b/gm/rebaseline_server/imagediffdb.py
@@ -268,8 +268,14 @@ class ImageDiffDB(object):
actual_image_url=actual_image_url,
actual_image_locator=actual_image_locator)
except Exception:
- logging.exception('got exception while creating new DiffRecord')
- return
+ # If we can't create a real DiffRecord for this (expected, actual) pair,
+ # store None and the UI will show whatever information we DO have.
+ # Fixes http://skbug.com/2368 .
+ logging.exception(
+ 'got exception while creating a DiffRecord for '
+ 'expected_image_url=%s , actual_image_url=%s; returning None' % (
+ expected_image_url, actual_image_url))
+ new_diff_record = None
self._diff_dict[key] = new_diff_record
def get_diff_record(self, expected_image_locator, actual_image_locator):

Powered by Google App Engine
This is Rietveld 408576698