From 80e96b2c7b32486857e10e4b5699d01cd9760c91 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Sat, 12 Jan 2019 18:45:37 -0800 Subject: [PATCH] Use bare 'raise' to re-raise exceptions Slightly more concise and nicer syntax --- Tests/helper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/helper.py b/Tests/helper.py index b47604a60..970198ef4 100644 --- a/Tests/helper.py +++ b/Tests/helper.py @@ -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):