Skip to content
Snippets Groups Projects
Commit defe609c authored by Rolf Niepraschk's avatar Rolf Niepraschk
Browse files

always "jsonify"

parent cc00a757
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
"host":"0.0.0.0", "host":"0.0.0.0",
"port":5301 "port":5301
}, },
"version":"1.0.1", "version":"1.0.2",
"gitfs_dir":"/var/run/mount/vl-gitfs/history/", "gitfs_dir":"/var/run/mount/vl-gitfs/history/",
"gitfs_dir_DUMMY":"/etc/" "gitfs_dir_DUMMY":"/etc/"
} }
...@@ -47,7 +47,7 @@ def getFile(date, time, filename): ...@@ -47,7 +47,7 @@ def getFile(date, time, filename):
try: try:
return send_from_directory(path, filename) return send_from_directory(path, filename)
except: except:
return '{}\n' return return jsonify({})
if __name__ == '__main__': if __name__ == '__main__':
app.run(host=config['server']['host'], port=config['server']['port']) app.run(host=config['server']['host'], port=config['server']['port'])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment