Skip to content
Snippets Groups Projects
Commit 6b4b3b5d authored by KERDREUX Jerome's avatar KERDREUX Jerome
Browse files

Fix a bug in helper

Switching == to is, or != to is not is a big source of error.. here an
example ;)
parent 26907d94
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment