Quick fixes
This commit is contained in:
@@ -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()}
|
||||
|
||||
@@ -17,7 +17,7 @@ class MemoryStorageRecord:
|
||||
|
||||
|
||||
class StorageDict(DefaultDict):
|
||||
def __init__(self, default_factory=None, **kwargs) -> None:
|
||||
def __init__(self, default_factory=None) -> None:
|
||||
if type(db.fsm.get('fsm')) is not dict:
|
||||
db.fsm['fsm'] = dict()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user