From 789c867c8f56c8747eb9f62a2782d2725d928466 Mon Sep 17 00:00:00 2001 From: Achmad Fathoni Date: Mon, 20 Feb 2023 16:30:23 +0700 Subject: [PATCH] Fix outdated systemd related exception text. --- freqtrade/loggers.py | 2 +- tests/test_configuration.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/freqtrade/loggers.py b/freqtrade/loggers.py index ff002f5d6..823fa174e 100644 --- a/freqtrade/loggers.py +++ b/freqtrade/loggers.py @@ -105,7 +105,7 @@ def setup_logging(config: Config) -> None: try: from cysystemd.journal import JournaldLogHandler except ImportError: - raise OperationalException("You need the systemd python package be installed in " + raise OperationalException("You need the cysystemd python package be installed in " "order to use logging to journald.") handler_jd = get_existing_handlers(JournaldLogHandler) if handler_jd: diff --git a/tests/test_configuration.py b/tests/test_configuration.py index abf7be5d1..4a94a3c2e 100644 --- a/tests/test_configuration.py +++ b/tests/test_configuration.py @@ -719,7 +719,7 @@ def test_set_loggers_journald_importerror(import_fails): 'logfile': 'journald', } with pytest.raises(OperationalException, - match=r'You need the systemd python package.*'): + match=r'You need the cysystemd python package.*'): setup_logging(config) logger.handlers = orig_handlers