Config: Alter migration error handling and cleanup

Rollback to the old config if automigration fails.

Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
kingbri
2024-09-16 18:02:18 -04:00
parent e60c4ba5bc
commit ebe7f3567e
2 changed files with 7 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
"""Common utility functions"""
from types import NoneType
from typing import Optional, Type, Union, get_args, get_origin
from typing import Type, Union, get_args, get_origin
def unwrap(wrapped, default=None):