This commit is contained in:
Jamie Hardt
2024-07-01 22:25:08 -07:00
parent 19d57f4726
commit 60593a3cdf

View File

@@ -168,8 +168,9 @@ they appear in the batchfile.
if args[0] in actions: if args[0] in actions:
try: try:
self.__getattribute__(args[0])(args[1:]) self.__getattribute__(args[0])(args[1:])
except KeyError: except KeyError as exc:
raise CommandArgumentError(command=args[0], line=lineno) raise CommandArgumentError(command=args[0],
line=lineno) from exc
else: else:
raise UnrecognizedCommandError(command=args[0], line=lineno) raise UnrecognizedCommandError(command=args[0], line=lineno)