Revert "Use bare 'raise' to re-raise exceptions"

This reverts commit 80e96b2c7b.
This commit is contained in:
Andrew Murray 2019-01-14 21:55:47 +11:00
parent 811a6ae9f2
commit 06f47ea546

View File

@ -140,14 +140,14 @@ class PillowTestCase(unittest.TestCase):
(msg or '') +
" average pixel value difference %.4f > epsilon %.4f" % (
ave_diff, epsilon))
except Exception:
except Exception as e:
if HAS_UPLOADER:
try:
url = test_image_results.upload(a, b)
logger.error("Url for test images: %s" % url)
except Exception:
pass
raise
raise e
def assert_image_similar_tofile(self, a, filename, epsilon, msg=None,
mode=None):