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)