From 34241f3b17e1f32263eb85082dea244d2ae4b6ea Mon Sep 17 00:00:00 2001
From: Matthias Saimpert <matthias.saimpert@cern.ch>
Date: Thu, 15 Feb 2024 12:52:18 +0100
Subject: [PATCH] fix typo

(cherry picked from commit 3b9710c304b43a5b04c37b270cfcffbd4e9a8935)
---
 viewer/itkpd-interface/lib/RecursiveComponentsSynchronizer.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/viewer/itkpd-interface/lib/RecursiveComponentsSynchronizer.py b/viewer/itkpd-interface/lib/RecursiveComponentsSynchronizer.py
index a25f1892..19b362af 100755
--- a/viewer/itkpd-interface/lib/RecursiveComponentsSynchronizer.py
+++ b/viewer/itkpd-interface/lib/RecursiveComponentsSynchronizer.py
@@ -436,7 +436,7 @@ class RecursiveComponentsSynchronizer(PDInterface.PDInterface):
                                 f'syncTestRun(): failed in getting {attachment.get("type")} attachment for a test run (ITkPD code: {pd_tr_doc.get("id")}): retry up to {self.max_try} times...'
                             )
 
-                    if i == max_try - 1:
+                    if i == self.max_try - 1:
                         logger.warning(
                             f'syncTestRun(): failed in getting {attachment.get("type")} attachment for a test run (ITkPD code: {pd_tr_doc.get("id")}). Given up'
                         )
-- 
GitLab