@@ -129,6 +129,9 @@ class UpdaterApp(Application):
yieldpath_fd.tell(),total_size
iflen(new_data)<block_size:
break
exceptOSErrorase:
if"EIO"instr(e):
self._sd_failed=True
finally:
path_fd.close()
req.close()
...
...
@@ -183,7 +186,11 @@ class UpdaterApp(Application):
return
ifself._sd_failed:
self._state_text="don't panic, but...\na weird SD bug happened D:\nturn off and on flow3r power (ha)\nthen try to reattempt\ndownloading the update\n\nyou got this."
self._state_text=(
"don't panic, but...\na weird SD bug happened D:\nturn off and on flow3r power (ha)\n"
"and retry. some SD cards don't\nwork for this at all tho :/\n\n"
"if this error repeats try\nhttps://flow3r.garden/flasher\ninstead!"