PyLint fixes

This commit is contained in:
Ivan Kravets committed 2023-02-02 17:43:38 +02:00
1 parent 18b6aad369
commit 5073313c33
5 files changed
+9 -7

No files matched your search

+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,