From a7248496955f4ad537b16e84ecff36578d4b3f76 Mon Sep 17 00:00:00 2001 From: wenchungw Date: Sat, 7 Sep 2024 10:14:25 -0700 Subject: [PATCH] Correct SA error --- scripts/dpu_tty.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/scripts/dpu_tty.py b/scripts/dpu_tty.py index d85ba166f9..2ed16a1a70 100755 --- a/scripts/dpu_tty.py +++ b/scripts/dpu_tty.py @@ -56,11 +56,7 @@ def main(): parser.add_argument('-s', '--slot', type=int, required=True) parser.add_argument('-t', '--tty') parser.add_argument('-b', '--baud', type=int) - try: - args = parser.parse_args() - except: - # parser.parse_args() printed error message - return 0 + args = parser.parse_args() dpu_tty, dpu_baud = get_dpu_tty(args.slot, args.tty, args.baud) # Use UART console utility for error checking of dpu_tty and dpu_baud.