mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
Workaround for SQLite VACUUM on Python 3.6.0
This commit is contained in:
parent
011375d0b2
commit
2983a3b87a
1 changed files with 4 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue