.BANCHO. Add auto increment version
This commit is contained in:
parent
2be7fbf5c8
commit
ed96bdbc4b
|
@ -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
2
pep.py
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user