Manage errors from players
This commit is contained in:
2
pytron
2
pytron
Submodule pytron updated: 8d27a9293e...ed3c86a282
@@ -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')
|
||||||
|
|||||||
Reference in New Issue
Block a user