Manage errors from players

This commit is contained in:
2019-04-04 11:44:41 +02:00
parent c309967a2b
commit 619196373e
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -20,7 +20,10 @@ for path in [f for f in modules if isfile(f)]:
name = toto.split('/')[-2]
# Find the module
module = import_module('.'.join(toto.split('/')[-3:]))
try:
module = import_module('.'.join(toto.split('/')[-3:]))
except:
continue
# Find the constructor
constructor = getattr(module, 'Ai')