mirror of
https://github.com/viq/NewsBlur.git
synced 2025-08-21 05:44:54 +00:00
7 lines
275 B
Python
7 lines
275 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), None, traceback
|