Config and exception handling #7

Merged
odecif merged 1 commits from config into master 2022-10-26 17:58:29 +02:00
2 changed files with 8 additions and 6 deletions
Showing only changes of commit b96ee917eb - Show all commits

View File

@ -1,11 +1,12 @@
[Database] [Database]
db_type = MySQL db_type = MySQL
host = 172.29.29.15 host = localhost
user = user user = user
pass = pass pass = pass
db_name = gamedistrosys db_name = gamedistrosys
contentpath = /srv/nfs_mounts/media/PC/
[Running] [Running]
host = localhost host = 172.29.29.51
port = 5501 port = 5501

View File

@ -16,9 +16,10 @@ def gamelist():
gamelist = [] gamelist = []
for nfo in nfolist: for nfo in nfolist:
# f = open(nfo, encoding="UTF-8") try:
game = modules.game.game(nfo, True, True) game = modules.game.game(nfo, True, True)
# game['game']['path'] = base64.b64encode(nfo.encode('utf-8')).decode() gamelist.append(game)
gamelist.append(game) except Exception as e:
print(e)
return jsonify(gamelist) return jsonify(gamelist)