mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +00:00
more bug fixes in DB class
This commit is contained in:
parent
9ee8f47cc6
commit
049b096cda
@ -13,10 +13,6 @@ class DbHandler:
|
||||
"""
|
||||
|
||||
def __init__(self, db_path="/tmp/tmp.sqlite"):
|
||||
if os.path.isfile(db_path):
|
||||
self.db_path = db_path
|
||||
else:
|
||||
raise IOError("Invalid path!")
|
||||
self.db_path = db_path
|
||||
self._con = sqlite3.connect(self.db_path)
|
||||
self._c = self._con.cursor()
|
||||
|
Loading…
Reference in New Issue
Block a user