logmanager: fix exceptions in python docs

This commit is contained in:
Jörg Thalheim
2025-08-25 14:10:11 +02:00
parent 7547761812
commit f4feac0d6b

View File

@@ -13,8 +13,7 @@ def list_log_days() -> list[str]:
A list of date strings in YYYY-MM-DD format representing all available log days.
Raises:
AssertionError: If LOG_MANAGER_INSTANCE is not initialized.
ClanError: If LOG_MANAGER_INSTANCE is not initialized.
"""
if LOG_MANAGER_INSTANCE is None:
msg = "LOG_MANAGER_INSTANCE is not initialized"
@@ -37,7 +36,7 @@ def list_log_groups(
A list of folder names (decoded) at the specified path level.
Raises:
AssertionError: If LOG_MANAGER_INSTANCE is not initialized.
ClanError: If LOG_MANAGER_INSTANCE is not initialized.
"""
if LOG_MANAGER_INSTANCE is None:
@@ -63,9 +62,7 @@ def get_log_file(
The contents of the log file as a string.
Raises:
ClanError: If the log file is not found.
AssertionError: If LOG_MANAGER_INSTANCE is not initialized.
ClanError: If the log file is not found or LOG_MANAGER_INSTANCE is not initialized.
"""
if LOG_MANAGER_INSTANCE is None:
msg = "LOG_MANAGER_INSTANCE is not initialized"