From f15ca33a574b582cbac6ff18617ab9100d0f0de6 Mon Sep 17 00:00:00 2001 From: Thomas Oettli Date: Mon, 9 Nov 2020 16:51:55 +0100 Subject: [PATCH] fix grammar in log messages --- pyinotifyd/_install.py | 2 +- pyinotifyd/scheduler.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyinotifyd/_install.py b/pyinotifyd/_install.py index 2d6ff5d..cf1a0cf 100755 --- a/pyinotifyd/_install.py +++ b/pyinotifyd/_install.py @@ -99,7 +99,7 @@ def install(name): logging.info("install configuration file") config_dir = f"/etc/{name}" if os.path.isdir(config_dir): - logging.info(f" => directory {config_dir} exists already") + logging.info(f" => directory {config_dir} already exists") else: try: logging.info(f" => create directory {config_dir}") diff --git a/pyinotifyd/scheduler.py b/pyinotifyd/scheduler.py index 1f0c6c5..4d2ca4b 100755 --- a/pyinotifyd/scheduler.py +++ b/pyinotifyd/scheduler.py @@ -378,7 +378,7 @@ class FileManagerScheduler(TaskScheduler): if os.path.exists(dst) and not rule.overwrite: raise RuntimeError( f"unable to {rule.action} file from '{path} " - f"to '{dst}', destination path exists already") + f"to '{dst}', path already exists") dst_dir = os.path.dirname(dst) if not os.path.isdir(dst_dir) and rule.auto_create: