Raised when substitutions are nested too deeply.
| 290 | |
| 291 | |
| 292 | class InterpolationDepthError(InterpolationError): |
| 293 | """Raised when substitutions are nested too deeply.""" |
| 294 | |
| 295 | def __init__(self, option, section, rawval): |
| 296 | msg = ("Recursion limit exceeded in value substitution: option {!r} " |
| 297 | "in section {!r} contains an interpolation key which " |
| 298 | "cannot be substituted in {} steps. Raw value: {!r}" |
| 299 | "".format(option, section, MAX_INTERPOLATION_DEPTH, |
| 300 | rawval)) |
| 301 | InterpolationError.__init__(self, option, section, msg) |
| 302 | self.args = (option, section, rawval) |
| 303 | |
| 304 | |
| 305 | class ParsingError(Error): |
no outgoing calls
no test coverage detected
searching dependent graphs…