Add AGPL license agreement

This commit is contained in:
Giuseppe Guerra 2018-07-13 12:30:23 +02:00
parent d8c6fa4993
commit 02b08d3024

11
pep.py
View File

@ -9,7 +9,7 @@ import tornado.web
from raven.contrib.tornado import AsyncSentryClient from raven.contrib.tornado import AsyncSentryClient
import redis import redis
from common import generalUtils from common import generalUtils, agpl
from common.constants import bcolors from common.constants import bcolors
from common.db import dbConnector from common.db import dbConnector
from common.ddog import datadogClient from common.ddog import datadogClient
@ -40,6 +40,7 @@ from pubSubHandlers import notificationHandler
from pubSubHandlers import updateSilenceHandler from pubSubHandlers import updateSilenceHandler
from pubSubHandlers import updateStatsHandler from pubSubHandlers import updateStatsHandler
def make_app(): def make_app():
return tornado.web.Application([ return tornado.web.Application([
(r"/", mainHandler.handler), (r"/", mainHandler.handler),
@ -52,7 +53,15 @@ def make_app():
(r"/stress", heavyHandler.handler) (r"/stress", heavyHandler.handler)
]) ])
if __name__ == "__main__": 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: try:
# Server start # Server start
consoleHelper.printServerStartHeader(True) consoleHelper.printServerStartHeader(True)