mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-24 16:24:11 +03:00
Use bare 'raise' to re-raise exceptions
Slightly more concise and nicer syntax
This commit is contained in:
parent
503138c857
commit
80e96b2c7b
|
@ -140,14 +140,14 @@ class PillowTestCase(unittest.TestCase):
|
|||
(msg or '') +
|
||||
" average pixel value difference %.4f > epsilon %.4f" % (
|
||||
ave_diff, epsilon))
|
||||
except Exception as e:
|
||||
except Exception:
|
||||
if HAS_UPLOADER:
|
||||
try:
|
||||
url = test_image_results.upload(a, b)
|
||||
logger.error("Url for test images: %s" % url)
|
||||
except Exception:
|
||||
pass
|
||||
raise e
|
||||
raise
|
||||
|
||||
def assert_image_similar_tofile(self, a, filename, epsilon, msg=None,
|
||||
mode=None):
|
||||
|
|
Loading…
Reference in New Issue
Block a user