mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
@ -15,6 +15,7 @@ def load(config, agent, epoch, from_disk=True):
|
|||||||
logging.info("ai disabled")
|
logging.info("ai disabled")
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
try:
|
||||||
logging.info("[ai] bootstrapping dependencies ...")
|
logging.info("[ai] bootstrapping dependencies ...")
|
||||||
|
|
||||||
start = time.time()
|
start = time.time()
|
||||||
@ -53,3 +54,7 @@ def load(config, agent, epoch, from_disk=True):
|
|||||||
logging.info(" %s: %s" % (key, value))
|
logging.info(" %s: %s" % (key, value))
|
||||||
|
|
||||||
return a2c
|
return a2c
|
||||||
|
except Exception as e:
|
||||||
|
logging.exception("error while starting AI")
|
||||||
|
|
||||||
|
return False
|
||||||
|
Reference in New Issue
Block a user