diff --git a/core/logging_setup.py b/core/logging_setup.py index dbfe003..b6b51d8 100644 --- a/core/logging_setup.py +++ b/core/logging_setup.py @@ -33,9 +33,10 @@ def configure_logging(enabled: bool = False, level: str = "WARNING") -> None: logger.addHandler(handler) def error_with_traceback(msg, *args, **kwargs): - if isinstance(kwargs.get('exception', None), Exception): + # If exc_info is True, include traceback in the message + if kwargs.get('exc_info', False): full_msg = f"{msg}\n{traceback.format_exc()}" - _original_error(full_msg, *args, **{**kwargs, 'exc_info': False}) + _original_error(full_msg, *args, **{k: v for k, v in kwargs.items() if k != 'exc_info'}) else: _original_error(msg, *args, **kwargs) diff --git a/core/updater.py b/core/updater.py index b877c73..20ee46f 100644 --- a/core/updater.py +++ b/core/updater.py @@ -20,7 +20,7 @@ GITHUB_REPO = "teamneoneko/Avatar-Toolkit" # Define which version series this installation can update to # For example: ["0.1"] means only look for 0.1.x updates # ["0.2", "0.3"] would look for both 0.2.x and 0.3.x -ALLOWED_VERSION_SERIES = ["0.5"] +ALLOWED_VERSION_SERIES = ["0.6"] is_checking_for_update: bool = False update_needed: bool = False