diff options
author | Julien Lirochon <julien@lirochon.net> | 2019-09-02 00:28:18 +0200 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2019-09-01 18:28:18 -0400 |
commit | 12feb6d7fbd85d34a81d23e59472e3083622a206 (patch) | |
tree | bee52c7e62a2f713288758ccc0e4ecae6793fde0 | |
parent | 05edd556c318469647e929af1497f40793b1894d (diff) | |
download | kutter-12feb6d7fbd85d34a81d23e59472e3083622a206.tar.gz kutter-12feb6d7fbd85d34a81d23e59472e3083622a206.tar.xz kutter-12feb6d7fbd85d34a81d23e59472e3083622a206.zip |
configfile: Fix the exception raised when an included file is missing (#1931)
Signed-off-by: Julien Lirochon <julien@lirochon.net>
-rw-r--r-- | klippy/configfile.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |