Commit 7a9a3488 authored by Maxime Perrotin's avatar Maxime Perrotin

Add an attribute check

parent bffd2567
...@@ -59,9 +59,13 @@ class Scenario(QThread, object): ...@@ -59,9 +59,13 @@ class Scenario(QThread, object):
try: try:
mod = importlib.import_module(backend + '_backend') mod = importlib.import_module(backend + '_backend')
except ImportError: except ImportError:
self.log.put((self.name, 'ERROR', try:
'Could not import {b}_backend.py' self.log.put((self.name, 'ERROR',
.format(b=backend))) 'Could not import {b}_backend.py'
.format(b=backend)))
except AttributeError:
print("ERROR: could not import {}_backend.py"
.format(backend))
continue continue
mod.setMsgQ() mod.setMsgQ()
# set the ASN.AST into the backend module, needed to convert VN # set the ASN.AST into the backend module, needed to convert VN
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment