flake8 fixes
This commit is contained in:
parent
9d57fbbff3
commit
0e4322a51f
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue