mirror of
https://github.com/house-of-vanity/OutFleet.git
synced 2025-08-21 14:37:16 +00:00
Fix
This commit is contained in:
7
main.py
7
main.py
@@ -251,8 +251,11 @@ def _dynamic():
|
|||||||
@app.route('/sync', methods=['GET', 'POST'])
|
@app.route('/sync', methods=['GET', 'POST'])
|
||||||
def sync():
|
def sync():
|
||||||
if request.method == 'GET':
|
if request.method == 'GET':
|
||||||
with open('sync.log', 'r') as file:
|
try:
|
||||||
lines = file.readlines()
|
with open('sync.log', 'r') as file:
|
||||||
|
lines = file.readlines()
|
||||||
|
except:
|
||||||
|
lines = []
|
||||||
return render_template(
|
return render_template(
|
||||||
'sync.html',
|
'sync.html',
|
||||||
SERVERS=SERVERS,
|
SERVERS=SERVERS,
|
||||||
|
Reference in New Issue
Block a user