From 920d521d686501e114ca328c6203edc2bb526c76 Mon Sep 17 00:00:00 2001 From: I-Al-Istannen Date: Sat, 25 Apr 2020 20:11:51 +0200 Subject: [PATCH] Change PrettyLogger.warn to PrettyLogger.warning --- PFERD/ilias/crawler.py | 4 ++-- PFERD/logging.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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.