You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
OSupdate: add more network error handling
This commit is contained in:
@@ -478,8 +478,9 @@ class UpdateDownloader:
|
||||
# -104 = ECONNRESET (connection reset by peer)
|
||||
# -110 = ETIMEDOUT (connection timed out)
|
||||
# -118 = EHOSTUNREACH (no route to host)
|
||||
# -202 = DNS/connection error (network not ready)
|
||||
network_indicators = [
|
||||
'-113', '-104', '-110', '-118', # Error codes
|
||||
'-113', '-104', '-110', '-118', '-202', # Error codes
|
||||
'econnaborted', 'econnreset', 'etimedout', 'ehostunreach', # Error names
|
||||
'connection reset', 'connection aborted', # Error messages
|
||||
'broken pipe', 'network unreachable', 'host unreachable',
|
||||
|
||||
Reference in New Issue
Block a user