Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
Jeroen Oudshoorn
2023-09-29 14:17:08 +02:00
parent 48d30491dd
commit b886721e71
3 changed files with 5 additions and 4 deletions

View File

@ -76,8 +76,8 @@ def load(config, agent, epoch, from_disk=True):
return a2c
except Exception as e:
logging.exception("error while starting AI (%s)", e)
logging.info("Deleting brain and restarting.")
logging.exception("[AI] error while starting AI (%s)", e)
logging.info("[AI] Deleting brain and restarting.")
os.system("rm /root/brain.nn && systemctl restart pwnagotchi")
logging.warning("[ai] AI not loaded!")