misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
06d8cc63fb
commit
7954bb5fcf
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user