Config and exception handling #7
@ -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
|
||||
|
||||
|
||||
@ -16,9 +16,10 @@ def gamelist():
|
||||
|
||||
gamelist = []
|
||||
for nfo in nfolist:
|
||||
# f = open(nfo, encoding="UTF-8")
|
||||
try:
|
||||
game = modules.game.game(nfo, True, True)
|
||||
# game['game']['path'] = base64.b64encode(nfo.encode('utf-8')).decode()
|
||||
gamelist.append(game)
|
||||
except Exception as e:
|
||||
print(e)
|
||||
|
||||
return jsonify(gamelist)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user