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):