mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Change PrettyLogger.warn to PrettyLogger.warning
This commit is contained in:
parent
e0b46a306a
commit
920d521d68
@ -111,8 +111,8 @@ class IliasCrawler:
|
|||||||
LOGGER.debug("Processing folder-like...")
|
LOGGER.debug("Processing folder-like...")
|
||||||
return self._switch_on_folder_like(path, link_element, url)
|
return self._switch_on_folder_like(path, link_element, url)
|
||||||
|
|
||||||
PRETTY.warn(
|
PRETTY.warning(
|
||||||
"Got unknown element type in switch. I am not sure what horror I found on the"
|
"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})"
|
f" ILIAS page. The element was at {str(path)!r} and it is {link_element!r})"
|
||||||
)
|
)
|
||||||
return []
|
return []
|
||||||
|
@ -66,7 +66,7 @@ class PrettyLogger:
|
|||||||
f"{Fore.RED}{Style.BRIGHT}{message}{Style.RESET_ALL}"
|
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
|
Print a warning message indicating some operation failed, but the error can be recovered
|
||||||
or ignored.
|
or ignored.
|
||||||
|
Loading…
Reference in New Issue
Block a user