diff options
author | Anson Mansfield <amansfield@mantaro.com> | 2025-04-07 13:52:57 -0400 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-04-26 15:51:49 +1000 |
commit | dc46cf15c17ab5bd8371c00e11ee9743229b7868 (patch) | |
tree | ef56eb694d2a4c02b84350ca77900e323ba8f775 | |
parent | 805fe083a3dea76b0acd36ecc436c2b76b808059 (diff) | |
download | micropython-dc46cf15c17ab5bd8371c00e11ee9743229b7868.tar.gz micropython-dc46cf15c17ab5bd8371c00e11ee9743229b7868.zip |
tools/mpremote: Fix possibly-missing EOPNOTSUPP errno name.
Signed-off-by: Anson Mansfield <amansfield@mantaro.com>
-rw-r--r-- | tools/mpremote/mpremote/transport.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/mpremote/mpremote/transport.py b/tools/mpremote/mpremote/transport.py index df8ef209ae..1b70f9b2ed 100644 --- a/tools/mpremote/mpremote/transport.py +++ b/tools/mpremote/mpremote/transport.py @@ -56,7 +56,10 @@ listdir_result = namedtuple("dir_result", ["name", "st_mode", "st_ino", "st_size # raises it as the corresponding OSError-derived exception. def _convert_filesystem_error(e, info): if "OSError" in e.error_output: - for code, estr in errno.errorcode.items(): + for code, estr in [ + *errno.errorcode.items(), + (errno.EOPNOTSUPP, "EOPNOTSUPP"), + ]: if estr in e.error_output: return OSError(code, info) return e |