From 12feb6d7fbd85d34a81d23e59472e3083622a206 Mon Sep 17 00:00:00 2001 From: Julien Lirochon Date: Mon, 2 Sep 2019 00:28:18 +0200 Subject: [PATCH] configfile: Fix the exception raised when an included file is missing (#1931) Signed-off-by: Julien Lirochon --- klippy/configfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klippy/configfile.py b/klippy/configfile.py index 33afdad4..a1d80b30 100644 --- a/klippy/configfile.py +++ b/klippy/configfile.py @@ -164,7 +164,7 @@ class PrinterConfig: include_filenames = glob.glob(include_glob) if not include_filenames and not glob.has_magic(include_glob): # Empty set is OK if wildcard but not for direct file reference - raise error("Include file '%s' does not exist", include_glob) + raise error("Include file '%s' does not exist" % (include_glob,)) include_filenames.sort() for include_filename in include_filenames: include_data = self._read_config_file(include_filename)