summaryrefslogtreecommitdiff
path: root/wasp/boards/pinetime/watch.py.in
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2021-08-31 20:21:21 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2021-08-31 20:21:46 (GMT)
commit59dff388110508ffef2469a78722459b7c59a2dd (patch)
tree79e8971ce12f6f216c4c3e41dcc1cb9cc6ac2efc /wasp/boards/pinetime/watch.py.in
parent10c23b030336ba7f9c0aa80cb50e8456a697bd9a (diff)
k9, p8, pinetime: Fix initial filesystem creation
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
Diffstat (limited to 'wasp/boards/pinetime/watch.py.in')
-rw-r--r--wasp/boards/pinetime/watch.py.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/wasp/boards/pinetime/watch.py.in b/wasp/boards/pinetime/watch.py.in
index 6db9537..91c59c3 100644
--- a/wasp/boards/pinetime/watch.py.in
+++ b/wasp/boards/pinetime/watch.py.in
@@ -103,7 +103,7 @@ try:
try:
boot_msg("Mount FS")
os.mount(flash, '/flash')
- except AttributeError:
+ except (AttributeError, OSError) as e:
# Format the filesystem (and provide a default version of main.py)
boot_msg("Format FS")
os.VfsLfs2.mkfs(flash)