aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/argaze/ArFeatures.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/argaze/ArFeatures.py b/src/argaze/ArFeatures.py
index ca46a64..07341de 100644
--- a/src/argaze/ArFeatures.py
+++ b/src/argaze/ArFeatures.py
@@ -186,7 +186,9 @@ class ArLayer():
# Edit expected AOI list by removing AOI with name equals to layer name
expected_aois = list(new_aoi_scene.keys())
- expected_aois.remove(new_layer_name)
+
+ if new_layer_name in expected_aois:
+ expected_aois.remove(new_layer_name)
# Load AOI scan path
try:
@@ -1182,7 +1184,9 @@ class ArScene():
# Edit expected AOI list by removing AOI with name equals to frame layer name
expected_aois = list(layer.aoi_scene.keys())
- expected_aois.remove(frame_layer_name)
+
+ if frame_layer_name in expected_aois:
+ expected_aois.remove(frame_layer_name)
frame_layer.aoi_scan_path.expected_aois = expected_aois