Change PrettyLogger.warn to PrettyLogger.warning

This commit is contained in:
I-Al-Istannen 2020-04-25 20:11:51 +02:00
parent e0b46a306a
commit 920d521d68
2 changed files with 3 additions and 3 deletions

View File

@ -111,8 +111,8 @@ class IliasCrawler:
LOGGER.debug("Processing folder-like...")
return self._switch_on_folder_like(path, link_element, url)
PRETTY.warn(
"Got unknown element type in switch. I am not sure what horror I found on the"
PRETTY.warning(
"Got unkwarning element type in switch. I am not sure what horror I found on the"
f" ILIAS page. The element was at {str(path)!r} and it is {link_element!r})"
)
return []

View File

@ -66,7 +66,7 @@ class PrettyLogger:
f"{Fore.RED}{Style.BRIGHT}{message}{Style.RESET_ALL}"
)
def warn(self, message: str) -> None:
def warning(self, message: str) -> None:
"""
Print a warning message indicating some operation failed, but the error can be recovered
or ignored.