From d86b6a6794f9f0affe72fb7d2553934f6a8c2e47 Mon Sep 17 00:00:00 2001 From: Frank Tackitt Date: Thu, 12 Dec 2024 07:40:49 -0700 Subject: [PATCH] Skip non-string values for config interpolation --- klippy/configfile.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/klippy/configfile.py b/klippy/configfile.py index 211318bbe..346df4e2f 100644 --- a/klippy/configfile.py +++ b/klippy/configfile.py @@ -28,6 +28,8 @@ def __init__(self, access_tracking): self.access_tracking = access_tracking def before_get(self, parser, section, option, value, defaults): + if not isinstance(value, str): + return value depth = configparser.MAX_INTERPOLATION_DEPTH while depth: depth -= 1