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

Add an attribute check

parent bffd2567
......@@ -59,9 +59,13 @@ class Scenario(QThread, object):
try:
mod = importlib.import_module(backend + '_backend')
except ImportError:
self.log.put((self.name, 'ERROR',
'Could not import {b}_backend.py'
.format(b=backend)))
try:
self.log.put((self.name, 'ERROR',
'Could not import {b}_backend.py'
.format(b=backend)))
except AttributeError:
print("ERROR: could not import {}_backend.py"
.format(backend))
continue
mod.setMsgQ()
# 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