From be1393a41ce7a75ed8de7f648a93c5e5974a50d2 Mon Sep 17 00:00:00 2001 From: damian Date: Tue, 1 Nov 2022 10:16:55 +0100 Subject: [PATCH] ensure existing exception handling code also handles new exception class --- ldm/invoke/prompt_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldm/invoke/prompt_parser.py b/ldm/invoke/prompt_parser.py index 96f002778b..43eea8736f 100644 --- a/ldm/invoke/prompt_parser.py +++ b/ldm/invoke/prompt_parser.py @@ -251,7 +251,7 @@ class PromptParser(): class ParsingException(Exception): pass - class UnrecognizedOperatorException(Exception): + class UnrecognizedOperatorException(ParsingException): def __init__(self, operator:str): super().__init__("Unrecognized operator: " + operator)