diff --git a/PFERD/ilias/crawler.py b/PFERD/ilias/crawler.py index 6901c1c..e80d495 100644 --- a/PFERD/ilias/crawler.py +++ b/PFERD/ilias/crawler.py @@ -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 [] diff --git a/PFERD/logging.py b/PFERD/logging.py index 567a69e..0c1753c 100644 --- a/PFERD/logging.py +++ b/PFERD/logging.py @@ -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.