From 54a2e785512c5dc809f2cf685aacce753c5c290a Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Mon, 29 Jun 2020 15:38:09 +0100 Subject: [PATCH] Fixed broken error handler --- openflexure_microscope/camera/piexif/_remove.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openflexure_microscope/camera/piexif/_remove.py b/openflexure_microscope/camera/piexif/_remove.py index c55fa101..10940b96 100644 --- a/openflexure_microscope/camera/piexif/_remove.py +++ b/openflexure_microscope/camera/piexif/_remove.py @@ -40,8 +40,8 @@ def remove(src, new_file=None): new_data = _webp.remove(src_data) except ValueError: new_data = src_data - except e: - print(e.args) + except Exception as e: + print(e) raise ValueError("Error occurred.") if isinstance(new_file, io.BytesIO):