9 lines
165 B
Python
9 lines
165 B
Python
import traceback
|
|
from typing import Type
|
|
|
|
|
|
class Handler:
|
|
@staticmethod
|
|
def handle(exc: Type[BaseException]) -> None:
|
|
traceback.print_exception(exc)
|