Skip to content

Commit

Permalink
Skip non-string values for config interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
kageurufu authored Dec 12, 2024
1 parent 86d1f55 commit d86b6a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions klippy/configfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d86b6a6

Please sign in to comment.