Fixed broken error handler
This commit is contained in:
parent
aa8e916e4b
commit
54a2e78551
1 changed files with 2 additions and 2 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue