From c71049e930164c1e53ddb3bf7266918241805b1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= <40151420+ldericher@users.noreply.github.com> Date: Wed, 7 Sep 2022 00:17:55 +0000 Subject: [PATCH] warn -> warning --- api/ovdashboard_api/config.py | 2 +- api/ovdashboard_api/dav_calendar.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/ovdashboard_api/config.py b/api/ovdashboard_api/config.py index 433093f..0f5229e 100644 --- a/api/ovdashboard_api/config.py +++ b/api/ovdashboard_api/config.py @@ -73,7 +73,7 @@ class Config(BaseModel): ) except RemoteResourceNotFound: - _logger.warn( + _logger.warning( f"Config file {SETTINGS.config_path!r} not found, creating ..." ) diff --git a/api/ovdashboard_api/dav_calendar.py b/api/ovdashboard_api/dav_calendar.py index 7b60825..6a8299d 100644 --- a/api/ovdashboard_api/dav_calendar.py +++ b/api/ovdashboard_api/dav_calendar.py @@ -148,7 +148,7 @@ async def _get_calendar_events( ) except ReportError: - _logger.warn("CalDAV server does not support expanded search") + _logger.warning("CalDAV server does not support expanded search") search_result = calendar.date_search( start=dt_start,