mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-13 13:16:52 +03:00
Merge pull request #3583 from radarhere/raise
Revert "Use bare 'raise' to re-raise exceptions"
This commit is contained in:
commit
8e4d547195
|
@ -140,14 +140,14 @@ class PillowTestCase(unittest.TestCase):
|
||||||
(msg or '') +
|
(msg or '') +
|
||||||
" average pixel value difference %.4f > epsilon %.4f" % (
|
" average pixel value difference %.4f > epsilon %.4f" % (
|
||||||
ave_diff, epsilon))
|
ave_diff, epsilon))
|
||||||
except Exception:
|
except Exception as e:
|
||||||
if HAS_UPLOADER:
|
if HAS_UPLOADER:
|
||||||
try:
|
try:
|
||||||
url = test_image_results.upload(a, b)
|
url = test_image_results.upload(a, b)
|
||||||
logger.error("Url for test images: %s" % url)
|
logger.error("Url for test images: %s" % url)
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
raise
|
raise e
|
||||||
|
|
||||||
def assert_image_similar_tofile(self, a, filename, epsilon, msg=None,
|
def assert_image_similar_tofile(self, a, filename, epsilon, msg=None,
|
||||||
mode=None):
|
mode=None):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user