From 60593a3cdf2b3a0e34934b70a9c9bf64307d5db6 Mon Sep 17 00:00:00 2001 From: Jamie Hardt Date: Mon, 1 Jul 2024 22:25:08 -0700 Subject: [PATCH] pylint --- mfbatch/commands.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mfbatch/commands.py b/mfbatch/commands.py index d86b143..90eb738 100644 --- a/mfbatch/commands.py +++ b/mfbatch/commands.py @@ -168,8 +168,9 @@ they appear in the batchfile. if args[0] in actions: try: self.__getattribute__(args[0])(args[1:]) - except KeyError: - raise CommandArgumentError(command=args[0], line=lineno) + except KeyError as exc: + raise CommandArgumentError(command=args[0], + line=lineno) from exc else: raise UnrecognizedCommandError(command=args[0], line=lineno)