From 06e21c86cefdf0ceca86639aab81f4e3f851e68e Mon Sep 17 00:00:00 2001 From: Swann Date: Thu, 21 Oct 2021 12:19:46 +0200 Subject: [PATCH] fix none attribute error --- multi_user/timers.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/multi_user/timers.py b/multi_user/timers.py index ad1555a..4456515 100644 --- a/multi_user/timers.py +++ b/multi_user/timers.py @@ -203,10 +203,11 @@ class DynamicRightSelectTimer(Timer): for node_id in to_lock: node = session.repository.graph.get(node_id) - instance_mode = node.data.get('instance_type') - if instance_mode and instance_mode == 'COLLECTION': - to_lock.remove(node_id) - instances_to_lock.append(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) + instances_to_lock.append(node_id) if instances_to_lock: try: porcelain.lock(session.repository,