Merge pull request 'Config and exception handling' (#7) from config into master

Reviewed-on: #7
This commit is contained in:
odecif 2022-10-26 17:58:28 +02:00
commit 4aac49f603
2 changed files with 8 additions and 6 deletions

View File

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

View File

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