mirror of
https://github.com/gryf/ebook-converter.git
synced 2026-01-21 04:04:11 +01:00
Removed unused rerise function
This commit is contained in:
@@ -13,18 +13,6 @@ def as_bytes(x, encoding='utf-8'):
|
||||
return str(x).encode(encoding)
|
||||
|
||||
|
||||
def reraise(tp, value, tb=None):
|
||||
try:
|
||||
if value is None:
|
||||
value = tp()
|
||||
if value.__traceback__ is not tb:
|
||||
raise value.with_traceback(tb)
|
||||
raise value
|
||||
finally:
|
||||
value = None
|
||||
tb = None
|
||||
|
||||
|
||||
def error_message(exc):
|
||||
args = getattr(exc, 'args', None)
|
||||
if args and isinstance(args[0], str):
|
||||
|
||||
Reference in New Issue
Block a user