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)
|
new_data = _webp.remove(src_data)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
new_data = src_data
|
new_data = src_data
|
||||||
except e:
|
except Exception as e:
|
||||||
print(e.args)
|
print(e)
|
||||||
raise ValueError("Error occurred.")
|
raise ValueError("Error occurred.")
|
||||||
|
|
||||||
if isinstance(new_file, io.BytesIO):
|
if isinstance(new_file, io.BytesIO):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue