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

2
pytron

Submodule pytron updated: 8d27a9293e...ed3c86a282

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')