mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-21 05:45:13 +00:00
7 lines
284 B
Python
7 lines
284 B
Python
![]() |
def raise_with_traceback(exc_type, traceback, *args, **kwargs):
|
||
|
"""
|
||
|
Raise a new exception of type `exc_type` with an existing `traceback`. All
|
||
|
additional (keyword-)arguments are forwarded to `exc_type`
|
||
|
"""
|
||
|
raise exc_type(*args, **kwargs).with_traceback(traceback)
|