Quick fixes

This commit is contained in:
BarsTiger committed 2023-11-02 16:09:28 +02:00
1 parent e5eaf4baa6
commit ee0a0ff285
5 files changed
+10 -7

No files matched your search

+2 -1
View File
@@ -2,10 +2,11 @@ import os
import traceback
import contextlib
import re
from typing import Type
class PrettyException:
def __init__(self, e: Exception):
def __init__(self, e: Type[BaseException] | Exception):
self.long = f"""
😍 {e.__class__.__name__}
👉 {"".join(traceback.format_exception_only(e)).strip()}