From e0f277ab01edefbdcf905abf87a3426ddd2691ee Mon Sep 17 00:00:00 2001 From: Nikolaos Ftylitakis Date: Wed, 10 Jul 2024 11:12:42 +0300 Subject: [PATCH] minor safety sheck when looking up partitions --- insighioNode/boot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/insighioNode/boot.py b/insighioNode/boot.py index 045ba65..aa6ccce 100644 --- a/insighioNode/boot.py +++ b/insighioNode/boot.py @@ -154,7 +154,9 @@ ################################################################## # setup data paritition from esp32 import Partition -p = Partition.find(Partition.TYPE_DATA, label='data')[0] +p = Partition.find(Partition.TYPE_DATA, label='data') +if len(p) > 0 : + p = p[0] try: if p: