dhondta/python-sploitkit

there is an db error on init

FunnyWolf opened this issue · 2 comments

Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/sploitkit/core/components/store.py", line 33, in get
db = [_ for _ in self.__pool if _.path == path][0]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/peewee.py", line 2993, in connect
self._state.set_connection(self._connect())
File "/usr/local/lib/python3.7/dist-packages/peewee.py", line 3329, in _connect
isolation_level=None, **self.connect_params)
sqlite3.OperationalError: unable to open database file

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/peewee.py", line 3055, in execute_sql
cursor = self.cursor(commit)
File "/usr/local/lib/python3.7/dist-packages/peewee.py", line 3039, in cursor
self.connect()
File "/usr/local/lib/python3.7/dist-packages/peewee.py", line 2996, in connect
self._initialize_connection(self._state.conn)
File "/usr/local/lib/python3.7/dist-packages/peewee.py", line 2831, in exit
reraise(new_type, new_type(exc_value, *exc_args), traceback)
File "/usr/local/lib/python3.7/dist-packages/peewee.py", line 183, in reraise
raise value.with_traceback(tb)
File "/usr/local/lib/python3.7/dist-packages/peewee.py", line 2993, in connect
self._state.set_connection(self._connect())
File "/usr/local/lib/python3.7/dist-packages/peewee.py", line 3329, in _connect
isolation_level=None, **self.connect_params)
peewee.OperationalError: unable to open database file

Hi @FunnyWolf
Thank you for mentioning this issue. I will investigate it ASAP.

This is related to issue #16