ensure existing exception handling code also handles new exception class

This commit is contained in:
damian 2022-11-01 10:16:55 +01:00 committed by Lincoln Stein
parent e554c2607f
commit be1393a41c

View File

@ -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)