Minor update

This commit is contained in:
Miroslav Stampar
2020-12-08 13:40:46 +01:00
parent 0cd6285707
commit bce1cfe00f
3 changed files with 7 additions and 2 deletions

View File

@@ -21,6 +21,7 @@ import sys
import tempfile
import threading
import time
import traceback
from lib.controller.checks import checkConnection
from lib.core.common import Backend
@@ -921,6 +922,11 @@ def _setPreprocessFunctions():
try:
function(_urllib.request.Request("http://localhost"))
except:
tbMsg = traceback.format_exc()
if conf.debug:
dataToStdout(tbMsg)
handle, filename = tempfile.mkstemp(prefix=MKSTEMP_PREFIX.PREPROCESS, suffix=".py")
os.close(handle)