diff --git a/pyrogram/client/storage/file_storage.py b/pyrogram/client/storage/file_storage.py index e367b447..b9529504 100644 --- a/pyrogram/client/storage/file_storage.py +++ b/pyrogram/client/storage/file_storage.py @@ -108,7 +108,10 @@ class FileStorage(MemoryStorage): self.create() with self.conn: - self.conn.execute("VACUUM") + 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 def destroy(self): os.remove(self.database)