Commit 54a2e785 authored by Joel Collins's avatar Joel Collins
Browse files

Fixed broken error handler

parent aa8e916e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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):