fix none attribute error

This commit is contained in:
Swann 2021-10-21 12:19:46 +02:00
parent 9d484b00e9
commit 06e21c86ce

View File

@ -203,6 +203,7 @@ class DynamicRightSelectTimer(Timer):
for node_id in to_lock:
node = session.repository.graph.get(node_id)
if node and hasattr(node,'data'):
instance_mode = node.data.get('instance_type')
if instance_mode and instance_mode == 'COLLECTION':
to_lock.remove(node_id)