From 6b4b3b5d95a57c03d1b19fdd393016da7df2217b Mon Sep 17 00:00:00 2001
From: jkerdreux-imt <jerome.kerdreux@imt-atlantique.fr>
Date: Sun, 24 Nov 2024 13:46:03 +0100
Subject: [PATCH] Fix a bug in helper

Switching == to is, or != to is not is a big source of error.. here an
example ;)
---
 libs/lib/xaal/lib/aiohelpers.py | 2 +-
 libs/lib/xaal/lib/helpers.py    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libs/lib/xaal/lib/aiohelpers.py b/libs/lib/xaal/lib/aiohelpers.py
index 18acef27..a38c5280 100644
--- a/libs/lib/xaal/lib/aiohelpers.py
+++ b/libs/lib/xaal/lib/aiohelpers.py
@@ -29,7 +29,7 @@ def run_async_package(pkg_name,pkg_setup,console_log = True,file_log=False):
     logger = logging.getLogger(pkg_name)
     logger.info('starting xaal package: %s'% pkg_name )
     result = pkg_setup(eng)
-    if result != True:
+    if result is not True:
         logger.critical("something goes wrong with package: %s" % pkg_name)
     try:
         eng.run()
diff --git a/libs/lib/xaal/lib/helpers.py b/libs/lib/xaal/lib/helpers.py
index e2eb9ca7..d2b48496 100644
--- a/libs/lib/xaal/lib/helpers.py
+++ b/libs/lib/xaal/lib/helpers.py
@@ -69,7 +69,7 @@ def run_package(pkg_name, pkg_setup, console_log = True, file_log=False):
     eng = Engine()
     result = pkg_setup(eng)
 
-    if result is True:
+    if result is not True:
         logger.critical("something goes wrong with package: %s" % pkg_name)
     try:
         eng.run()
-- 
GitLab