Manage errors from players

This commit is contained in:
Thomas Forgione 2019-04-04 11:44:41 +02:00
parent c309967a2b
commit 619196373e
No known key found for this signature in database
GPG Key ID: 203DAEA747F48F41
2 changed files with 5 additions and 2 deletions

2
pytron

@ -1 +1 @@
Subproject commit 8d27a9293e2ffbb1119b9c3c453aec76be612a50 Subproject commit ed3c86a2822cd23e4a3cf4b66e4483fdb129cbe1

View File

@ -20,7 +20,10 @@ for path in [f for f in modules if isfile(f)]:
name = toto.split('/')[-2] name = toto.split('/')[-2]
# Find the module # Find the module
module = import_module('.'.join(toto.split('/')[-3:])) try:
module = import_module('.'.join(toto.split('/')[-3:]))
except:
continue
# Find the constructor # Find the constructor
constructor = getattr(module, 'Ai') constructor = getattr(module, 'Ai')