misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
Simone Margaritelli 2019-10-25 12:15:56 +02:00
parent 06d8cc63fb
commit 7954bb5fcf
No known key found for this signature in database
GPG Key ID: 82E42E7F3B34C97E

View File

@ -15,6 +15,7 @@ def load(config, agent, epoch, from_disk=True):
logging.info("ai disabled")
return False
try:
logging.info("[ai] bootstrapping dependencies ...")
start = time.time()
@ -53,3 +54,7 @@ def load(config, agent, epoch, from_disk=True):
logging.info(" %s: %s" % (key, value))
return a2c
except Exception as e:
logging.exception("error while starting AI")
return False