Merge pull request #213 from Yusarina/atk-next

Logging Fix
This commit is contained in:
Yusarina
2025-11-20 03:22:12 +00:00
committed by GitHub
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -33,9 +33,10 @@ def configure_logging(enabled: bool = False, level: str = "WARNING") -> None:
logger.addHandler(handler) logger.addHandler(handler)
def error_with_traceback(msg, *args, **kwargs): 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()}" 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: else:
_original_error(msg, *args, **kwargs) _original_error(msg, *args, **kwargs)
+1 -1
View File
@@ -20,7 +20,7 @@ GITHUB_REPO = "teamneoneko/Avatar-Toolkit"
# Define which version series this installation can update to # Define which version series this installation can update to
# For example: ["0.1"] means only look for 0.1.x updates # 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 # ["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 is_checking_for_update: bool = False
update_needed: bool = False update_needed: bool = False