Config and exception handling
This commit is contained in:
parent
eaedc683e1
commit
b96ee917eb
@ -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
|
||||||
|
|
||||||
|
|||||||
@ -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)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user