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