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=-1.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,NO_DNS_FOR_FROM, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from [10.7.7.2] (unknown [182.253.183.90]) by gnuweeb.org (Postfix) with ESMTPSA id 1CD9F804D1; Fri, 28 Oct 2022 19:46:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1666986393; bh=ETu8JNg/WKP6nB9QptSXTtGnuYSyoFgfJN2+TrvjyMQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=QoKx8EgOyFXN+5aGChSXEn1Csoa+EY39WawrFvB0NjRzHQJLUeBiE5N70bw6x5M5d TKiu+oki8V7l1g6WL+AIsxwVf1Ep81TzJzRkzqxitzPzp5Y3tsttzzYbVODqrlf9Jc Gi3Slhf6C8FPp4Ieeg+AUD2urqsX8KI84WsJPwGC8rqd9UQaiScG41EijonMWZPWj6 Ne+SBiZ4bse+TTh50eSfNJuWnCB3F+UvQyEPrFcFk6ygimZCHGhmtzEIEafXqRT3G2 5imJX27cSlJt/zj5fwLIeALL//B6ltxuGZ2Fty+PyKR2/MTbFgsK5D5HEOmJ922OL/ L+D0Lb7Mt8KcA== Message-ID: Date: Sat, 29 Oct 2022 02:46:29 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH v1 2/2] daemon: telegram: Handle MySQL error Content-Language: en-US To: Muhammad Rizki Cc: Alviro Iskandar Setiawan , GNU/Weeb Mailing List References: <20221027150823.601914-1-ammarfaizi2@gnuweeb.org> <20221027150823.601914-3-ammarfaizi2@gnuweeb.org> <1d500d37-b11b-75fd-38e5-d7f8e0a9b1d4@gnuweeb.org> <3a79a587-ddee-9e25-2ac5-b573938b44a9@gnuweeb.org> <043f55c3-67d8-9130-aca4-73c59926d2af@gnuweeb.org> <6aed0245-5156-7983-f4be-faf4d6cd7a13@gnuweeb.org> <67f786d9-f5b8-5e4a-3944-260483db1c6b@gnuweeb.org> From: Ammar Faizi In-Reply-To: <67f786d9-f5b8-5e4a-3944-260483db1c6b@gnuweeb.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: On 10/29/22 1:15 AM, Muhammad Rizki wrote: > Anyway, the rollback() is from the MySQL function? Yes. Just a quick google. Please read: https://pynative.com/python-mysql-transaction-management-using-commit-rollback/ -- Ammar Faizi