More fixes from Bugbear suggestions

This commit is contained in:
erinhmclark
2025-03-12 16:07:05 +00:00
parent 753c3c6214
commit 6e52a534e7
3 changed files with 5 additions and 4 deletions

View File

@@ -65,7 +65,7 @@ class AuthenticationJsonParseAction(argparse.Action):
auth_dict = json.loads(values)
setattr(namespace, self.dest, auth_dict)
except json.JSONDecodeError as e:
raise argparse.ArgumentTypeError(f"Invalid JSON input for argument '{self.dest}': {e}")
raise argparse.ArgumentTypeError(f"Invalid JSON input for argument '{self.dest}': {e}") from e
def load_from_file(path):
try: