Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
Jeroen Oudshoorn
2023-10-07 10:10:13 +02:00
parent d9bc67000a
commit 7724c3adb7
2 changed files with 6 additions and 2 deletions

View File

@ -78,7 +78,7 @@ def load(config, agent, epoch, from_disk=True):
except Exception as e:
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")
os.system("rm /root/brain.nn && service pwnagotchi restart")
logging.warning("[ai] AI not loaded!")
return False