mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-07 15:34:52 +00:00
Remove special cases for older Python versions
This commit is contained in:
parent
dbf2e471b5
commit
87ae79e0e2
1 changed files with 1 additions and 4 deletions
|
|
@ -63,10 +63,7 @@ class FileStorage(SQLiteStorage):
|
||||||
self.update()
|
self.update()
|
||||||
|
|
||||||
with self.conn:
|
with self.conn:
|
||||||
try: # Python 3.6.0 (exactly this version) is bugged and won't successfully execute the vacuum
|
self.conn.execute("VACUUM")
|
||||||
self.conn.execute("VACUUM")
|
|
||||||
except sqlite3.OperationalError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
async def delete(self):
|
async def delete(self):
|
||||||
os.remove(self.database)
|
os.remove(self.database)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue