aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/configfile.py
diff options
context:
space:
mode:
authorJulien Lirochon <julien@lirochon.net>2019-09-02 00:28:18 +0200
committerKevinOConnor <kevin@koconnor.net>2019-09-01 18:28:18 -0400
commit12feb6d7fbd85d34a81d23e59472e3083622a206 (patch)
treebee52c7e62a2f713288758ccc0e4ecae6793fde0 /klippy/configfile.py
parent05edd556c318469647e929af1497f40793b1894d (diff)
downloadkutter-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>
Diffstat (limited to 'klippy/configfile.py')
-rw-r--r--klippy/configfile.py2
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)