PyLint fixes

This commit is contained in:
Ivan Kravets
2023-02-02 17:43:38 +02:00
parent 18b6aad369
commit 5073313c33
5 changed files with 9 additions and 7 deletions
+2 -3
View File
@@ -144,9 +144,8 @@ def new_serial_instance(options): # pylint: disable=too-many-branches
except KeyboardInterrupt as exc:
click.echo("", err=True)
raise UserSideException("User aborted and port is not given") from exc
else:
if not port:
raise UserSideException("Port is not given")
if not port:
raise UserSideException("Port is not given")
try:
serial_instance = serial.serial_for_url(
port,