Config and exception handling

This commit is contained in:
Bob Niemöller 2022-10-26 17:52:19 +02:00
parent eaedc683e1
commit b96ee917eb
2 changed files with 8 additions and 6 deletions

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)