From 431cac35c3b080940412a4b92cb878bf255439a2 Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Fri, 22 Sep 2023 12:36:12 +0200 Subject: [PATCH] cli tool: do not archive postdata temp file --- cli/app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cli/app.py b/cli/app.py index f848945..67ac894 100644 --- a/cli/app.py +++ b/cli/app.py @@ -93,6 +93,8 @@ def initdatapath(): if not os.path.exists("history"): os.mkdir("history") if os.path.exists("session"): + if os.path.exists("session/postdata"): + os.remove("session/postdata") shutil.make_archive("history/session" + str(time.time()), "zip", "session") shutil.rmtree("session") os.mkdir("session")