From bce0d339aca6cdd61079cccf629ce225b3debf01 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Tue, 7 Jul 2020 15:01:22 +0000 Subject: Remove unused variables --- src/VHSImage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/VHSImage.py') diff --git a/src/VHSImage.py b/src/VHSImage.py index b9042d2..fc21adc 100644 --- a/src/VHSImage.py +++ b/src/VHSImage.py @@ -81,7 +81,7 @@ def mod_image_repeat_rows( elif repeat: try: pixels[x, y] = row_to_repeat[x + offsets[num_repeats]] - except Exception as e: + except Exception: pixels[x, y] = row_to_repeat[x - offsets[num_repeats]] else: pixels[x, y] = (r, g, b) @@ -104,7 +104,7 @@ def add_date(img_path, out_name="image.jpg", bottom_offset=0): date_str_2 = date_obj.strftime("%b. %d %Y") corner_offset = 50 img = Image.open(img_path) - width, height = img.size + _, height = img.size draw = ImageDraw.Draw(img) font = ImageFont.truetype("src/VCR_OSD_MONO_1.001.ttf", 64) draw.text( -- cgit v1.2.3