From 87ae79e0e2a68a7e215ac7a006cda207361e4087 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sun, 25 Dec 2022 10:29:00 +0100 Subject: [PATCH] Remove special cases for older Python versions --- pyrogram/storage/file_storage.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pyrogram/storage/file_storage.py b/pyrogram/storage/file_storage.py index a2ebdf9e..aebe9176 100644 --- a/pyrogram/storage/file_storage.py +++ b/pyrogram/storage/file_storage.py @@ -63,10 +63,7 @@ class FileStorage(SQLiteStorage): self.update() with self.conn: - try: # Python 3.6.0 (exactly this version) is bugged and won't successfully execute the vacuum - self.conn.execute("VACUUM") - except sqlite3.OperationalError: - pass + self.conn.execute("VACUUM") async def delete(self): os.remove(self.database)