Skip to content
Permalink
Browse files

Workaround for SQLite VACUUM on Python 3.6.0

  • Loading branch information...
delivrance committed Sep 9, 2019
1 parent 011375d commit 2983a3b87aa938605a6307092d259905885af8a5
Showing with 4 additions and 1 deletion.
  1. +4 −1 pyrogram/client/storage/file_storage.py
@@ -108,7 +108,10 @@ def open(self):
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)

0 comments on commit 2983a3b

Please sign in to comment.
You can’t perform that action at this time.