Add AGPL license agreement

This commit is contained in:
Giuseppe Guerra 2018-07-13 12:30:23 +02:00
parent d8c6fa4993
commit 02b08d3024
1 changed files with 10 additions and 1 deletions

11
pep.py
View File

@ -9,7 +9,7 @@ import tornado.web
from raven.contrib.tornado import AsyncSentryClient
import redis
from common import generalUtils
from common import generalUtils, agpl
from common.constants import bcolors
from common.db import dbConnector
from common.ddog import datadogClient
@ -40,6 +40,7 @@ from pubSubHandlers import notificationHandler
from pubSubHandlers import updateSilenceHandler
from pubSubHandlers import updateStatsHandler
def make_app():
return tornado.web.Application([
(r"/", mainHandler.handler),
@ -52,7 +53,15 @@ def make_app():
(r"/stress", heavyHandler.handler)
])
if __name__ == "__main__":
# AGPL license agreement
try:
agpl.check_license("ripple", "pep.py")
except agpl.LicenseError as e:
print(str(e))
sys.exit(1)
try:
# Server start
consoleHelper.printServerStartHeader(True)