fix db compatability with ujson
This commit is contained in:
parent
b0acb14b92
commit
1e884e366e
|
@ -18,7 +18,7 @@ from .cache import LRUCache
|
|||
|
||||
def jsondb():
|
||||
try:
|
||||
db = TinyDB(f'{stor_path}/db.json', indent='\t')
|
||||
db = TinyDB(f'{stor_path}/db.json', indent=4)
|
||||
|
||||
except JSONDecodeError as e:
|
||||
logging.critical(f'Failed to load DB: {e}. Exiting...')
|
||||
|
|
Loading…
Reference in a new issue