This commit is contained in:
Kovid Goyal 2025-03-11 11:36:42 +05:30
parent 3bbbe6257b
commit 4c47f44c43
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -43,8 +43,6 @@ class Database:
self.path_on_device = self.dbpath = path_on_device self.path_on_device = self.dbpath = path_on_device
self.dbversion = 0 self.dbversion = 0
def connect(path: str = path_on_device) -> None: def connect(path: str = path_on_device) -> None:
if path == path_on_device:
raise apsw.IOError('xxx')
with closing(apsw.Connection(path)) as conn: with closing(apsw.Connection(path)) as conn:
conn.setrowtrace(row_factory) conn.setrowtrace(row_factory)
cursor = conn.cursor() cursor = conn.cursor()