Fix python code as suggestion from LGTM

This commit is contained in:
Khanh Ngo
2018-08-31 18:00:41 +07:00
parent 3457d9214a
commit e6f82160c1
10 changed files with 87 additions and 109 deletions

6
run.py
View File

@@ -1,11 +1,7 @@
#!/usr/bin/env python3
from app import app
from config import PORT
try:
from config import BIND_ADDRESS
except:
BIND_ADDRESS = '127.0.0.1'
from config import BIND_ADDRESS
if __name__ == '__main__':
app.run(debug = True, host=BIND_ADDRESS, port=PORT)