From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NO_DNS_FOR_FROM,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from mail-lj1-f170.google.com (mail-lj1-f170.google.com [209.85.208.170]) by gnuweeb.org (Postfix) with ESMTPSA id 1101C80FF1 for ; Mon, 3 Oct 2022 23:22:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1664839365; bh=2UOS/wWr97T92KfIC03B2L1VzJekBtWdXcxp5opN+dA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=DUL5qVHemh8J0jToqhwNusCwPWzr3HYgwQFqRzpGP1UFw2cod61duE2vBPMzPdHaI 0U593p8oXqMRuPnaKsf0TThpIrMu1BHZCnAC9mXbqYHZmQPIGted3llRtvIQpRQMi2 tW1To3jgSTafB6yCqKxOqIeZ9o7eMA1/ZFu+H3dCqMqOiGVIfybT5r6hqln3NtvqxT nhleZMPqhQtWpPjJshx4uEzIEFU9l3V5CdEUTUVAPjU3ivnfrAJsf5HV0VNCdqUvat yS0FLPL3VQE/achVbGn4qNhtWExmKTTMFMT27PNne/cey4TAbrqXr5tSO3XL3YtmaG L5r+kB+9PVMXw== Received: by mail-lj1-f170.google.com with SMTP id a10so13534996ljq.0 for ; Mon, 03 Oct 2022 16:22:44 -0700 (PDT) X-Gm-Message-State: ACrzQf3nE3wFtgja/aLql9bQzHK1WG8iVs+J0bMz0pt/JL8tlWpDv4x7 1nsfnN0t5cuv4If1bveWCHyIrx0p3YDHmph2Dug= X-Google-Smtp-Source: AMsMyM5CYb7DMLBuJJft/o3JSlWf7T7pmAdLezuH1f7SWMYFAtDPKWhYoLlcuGRWr3gHVk4m5gJRL7ZpND6YyvJvsTo= X-Received: by 2002:a2e:b8d6:0:b0:26c:4776:ba2e with SMTP id s22-20020a2eb8d6000000b0026c4776ba2emr6789121ljp.143.1664839363072; Mon, 03 Oct 2022 16:22:43 -0700 (PDT) MIME-Version: 1.0 References: <20221001130355.784-1-kiizuha@gnuweeb.org> <7c6e2632-b8b2-a7dd-f972-07b2b864c20a@gnuweeb.org> <611e7213-ab87-1d72-7cf2-ca465067a89c@gnuweeb.org> In-Reply-To: <611e7213-ab87-1d72-7cf2-ca465067a89c@gnuweeb.org> From: Alviro Iskandar Setiawan Date: Tue, 4 Oct 2022 06:22:31 +0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v1 00/26] The complete version of the Discord bot To: Muhammad Rizki Cc: Ammar Faizi , "GNU/Weeb Mailing List" Content-Type: text/plain; charset="UTF-8" List-Id: On Tue, Oct 4, 2022 at 6:18 AM Muhammad Rizki wrote: > On 04/10/2022 06.12, Alviro Iskandar Setiawan wrote: >> On Mon, Oct 3, 2022 at 7:48 PM Ammar Faizi wrote: >>> Files are not deleted: >>> >>> ammarfaizi2@integral2:~/app/lore-daemon.dev/daemon$ ls dscord/storage -l >>> total 0 >>> drwxrwxr-x 1 ammarfaizi2 ammarfaizi2 78 Sep 3 17:25 23035eeb480f2b3501ba0841ef10ce3f >>> drwxrwxr-x 1 ammarfaizi2 ammarfaizi2 12 Oct 3 19:42 6766c45fa800d71173893158b2c7d640 >>> drwxrwxr-x 1 ammarfaizi2 ammarfaizi2 0 Sep 3 17:22 78380c23529749c280e4cca46f7519c9 >>> drwxrwxr-x 1 ammarfaizi2 ammarfaizi2 0 Sep 3 17:23 a23e986acc2c75d08a3e98377f06bbfe >>> drwxrwxr-x 1 ammarfaizi2 ammarfaizi2 356 Sep 3 17:22 b241bd7c932c70e6a81d107da019cb67 >>> drwxrwxr-x 1 ammarfaizi2 ammarfaizi2 12 Sep 3 17:25 bcaac8364eaf04951d504faa1f1df826 >>> drwxrwxr-x 1 ammarfaizi2 ammarfaizi2 0 Sep 3 17:23 c36cdede05b536d395c5b55dbae92288 >>> ammarfaizi2@integral2:~/app/lore-daemon.dev/daemon$ >> >> bang, only 1 file from 3rd Oct, the rest are all old files from a >> month ago, look at the date >> > > Yes, this issue has already been a long time not fixed, because, in the > past, I still don't know what caused it. Now, I think I see the problem. > I've patched it and tested it. Wait until I send new PATCH email, thanks. the error Ammar reported could be the reason why the files are not deleted, because if you hit an error, the code next to it won't be executed, for ex: aaa() # error here bbb() # this doesn't get executed you must use finally to handle this: try: aaa() # error here execpt: pass finally: bbb() # it always gets executed but idk, i didn't investigate, just speculate -- Viro