.BANCHO. Add auto increment version

This commit is contained in:
Nyo 2016-06-17 13:11:12 +02:00
parent 2be7fbf5c8
commit ed96bdbc4b
3 changed files with 7 additions and 2 deletions

View File

@ -6,7 +6,11 @@ from objects import matchList
from objects import fileLocks from objects import fileLocks
from raven import Client from raven import Client
VERSION = "1.2" try:
with open("version") as f:
VERSION = f.read()
except:
VERSION = "¯\_(xd)_/¯"
db = None db = None
conf = None conf = None

2
pep.py
View File

@ -165,7 +165,7 @@ if __name__ == "__main__":
try: try:
glob.sentry = generalFunctions.stringToBool(glob.conf.config["sentry"]["enable"]) glob.sentry = generalFunctions.stringToBool(glob.conf.config["sentry"]["enable"])
if glob.sentry == True: if glob.sentry == True:
application.sentry_client = AsyncSentryClient(glob.conf.config["sentry"]["dns"]) application.sentry_client = AsyncSentryClient(glob.conf.config["sentry"]["dns"], release=glob.VERSION)
else: else:
consoleHelper.printColored("[!] Warning! Sentry logging is disabled!", bcolors.YELLOW) consoleHelper.printColored("[!] Warning! Sentry logging is disabled!", bcolors.YELLOW)
except: except:

1
version Normal file
View File

@ -0,0 +1 @@
1.2.