From d009835210c0dcd8d2ccd1ecb0ad27b97d11687c Mon Sep 17 00:00:00 2001 From: link2xt Date: Sat, 18 Dec 2021 12:48:40 +0000 Subject: [PATCH] Remove unnecessary `getattr` --- python/src/deltachat/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/src/deltachat/account.py b/python/src/deltachat/account.py index 31804e4ce..5f8e39bf9 100644 --- a/python/src/deltachat/account.py +++ b/python/src/deltachat/account.py @@ -404,7 +404,7 @@ class Account(object): arr = array("i") for msg in messages: if isinstance(msg, Message): - arr.append(getattr(msg, "id")) + arr.append(msg.id) else: arr.append(msg) msg_ids = ffi.cast("uint32_t*", ffi.from_buffer(arr))