made more concise

This commit is contained in:
Kristian Krsnik 2023-08-02 20:35:08 +02:00
parent 91e4b5f73a
commit 99d387c692
1 changed files with 1 additions and 4 deletions

View File

@ -1,10 +1,7 @@
import requests, json, re, os
from datetime import datetime
def loadSettings(path = None) -> dict:
if path is None:
path = f"{os.path.expanduser('~')}/config.json"
def loadSettings(path = f"{os.path.expanduser('~')}/config.json") -> dict:
# TODO: check integrity
try:
with open(path, 'r') as file: