From dbf2e471b552b8e3012d89ef8acc21ac7929ea15 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sun, 25 Dec 2022 10:26:30 +0100 Subject: [PATCH] Fix usages of removed attributes --- pyrogram/storage/file_storage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyrogram/storage/file_storage.py b/pyrogram/storage/file_storage.py index 986787cd..a2ebdf9e 100644 --- a/pyrogram/storage/file_storage.py +++ b/pyrogram/storage/file_storage.py @@ -38,13 +38,13 @@ class FileStorage(SQLiteStorage): version = self.version() if version == 1: - with self.lock, self.conn: + with self.conn: self.conn.execute("DELETE FROM peers") version += 1 if version == 2: - with self.lock, self.conn: + with self.conn: self.conn.execute("ALTER TABLE sessions ADD api_id INTEGER") version += 1