Skip to content

Commit

Permalink
Update bare except
Browse files Browse the repository at this point in the history
  • Loading branch information
ljkeller committed Oct 2, 2024
1 parent 72cb25c commit 99ebfb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flash_utils/flash.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,10 @@ def __setup_serial_port(self):
self.__serial_port = serial.Serial(
port=self.__args.serialPort, baudrate=self.__args.baudRate
)
except:
except Exception as e:
die(
msg=(
"Unable to open serial port. "
f"Unable to open serial port. Error: {e}\n"
"Do you have sufficient permissions? Is your device connected?"
)
)
Expand Down

0 comments on commit 99ebfb7

Please sign in to comment.