Minor stability patch

This commit is contained in:
Miroslav Stampar
2017-04-11 10:01:37 +02:00
parent 47ee1a991f
commit 1e310631ab
4 changed files with 10 additions and 7 deletions

View File

@@ -115,7 +115,6 @@ def main():
try:
checkEnvironment()
setPaths(modulePath())
banner()
@@ -203,9 +202,10 @@ def main():
print
errMsg = unhandledExceptionMessage()
excMsg = traceback.format_exc()
valid = checkIntegrity()
try:
if not checkIntegrity():
if valid is False:
errMsg = "code integrity check failed (turning off automatic issue creation). "
errMsg += "You should retrieve the latest development version from official GitHub "
errMsg += "repository at '%s'" % GIT_PAGE
@@ -285,7 +285,7 @@ def main():
errMsg = maskSensitiveData(errMsg)
excMsg = maskSensitiveData(excMsg)
if conf.get("api"):
if conf.get("api") or not valid:
logger.critical("%s\n%s" % (errMsg, excMsg))
else:
logger.critical(errMsg)