1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Various Fixes

This commit is contained in:
Krateng
2019-01-09 23:29:01 +01:00
parent bfff37a549
commit 1a3a172089
5 changed files with 26 additions and 91 deletions

View File

@@ -3,6 +3,7 @@
from bottle import Bottle, route, get, post, error, run, template, static_file, request, response, FormsDict
from importlib.machinery import SourceFileLoader
from htmlgenerators import removeIdentical
from utilities import *
import _thread
import waitress
import urllib.request
@@ -68,7 +69,7 @@ def shutdown():
def graceful_exit(sig=None,frame=None):
urllib.request.urlopen("http://localhost:" + str(DATABASE_PORT) + "/sync")
print("Server shutting down...")
log("Server shutting down...")
sys.exit()