1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-06 05:21:22 +03:00
Max Prokhorov f5142b883d
Tools - upload.py exception handling fixes (#9186)
- don't check exc_info() in `finally`, it only works without `except` with just `try` and `finally`
  see https://docs.python.org/3/reference/compound_stmts.html#try
  after `except Exception as e:` block, `e` is already deleted

- handle a rare case when esptool code does not close 'erase_file'.
  printing paths may cause encoding issues, so just fall through silently

- simplify ordering of write_flash & erase_region arguments
  since we always end up in write_flash, prefer to think of it as argument pairs 'addr' + 'path'. actual binaries go first, erase 
  temporaries go last. construct write args beforehand and apply when finishing with the command line.

  both commands can appear multiple times, for manual or scripting cases, where multiple regions should be erased / written to
2025-05-30 01:08:31 +03:00
..
2025-01-24 10:17:51 +03:00
2022-10-31 11:13:40 -07:00
2024-07-31 03:58:18 +03:00
2025-05-27 02:26:22 +03:00
2023-02-22 20:46:25 +03:00