flake8 fixes

This commit is contained in:
Otto winter 2021-10-29 12:20:41 +02:00
parent 9d57fbbff3
commit 0e4322a51f
No known key found for this signature in database
GPG Key ID: 48ED2DDB96D7682C
1 changed files with 1 additions and 2 deletions

View File

@ -123,7 +123,7 @@ def run_esphomeflasher(argv):
# Check if the higher baud rate works
try:
flash_size = detect_flash_size(stub_chip)
except EsphomeflasherError as err:
except EsphomeflasherError:
# Go back to old baud rate by recreating chip instance
print("Chip does not support baud rate {}, changing to 115200".format(args.upload_baud_rate))
stub_chip._port.close()
@ -133,7 +133,6 @@ def run_esphomeflasher(argv):
if flash_size is None:
flash_size = detect_flash_size(stub_chip)
print(" - Flash Size: {}".format(flash_size))
mock_args = configure_write_flash_args(info, firmware, flash_size,