totpcgi: get the traceback in the tmp folder

Signed-off-by: Clement Verna <cverna@tutanota.com>
This commit is contained in:
Clement Verna 2019-08-01 19:51:16 +02:00 committed by Pierre-Yves Chibon
parent 24fda1a51c
commit 7f61d52f50

View file

@ -28,6 +28,9 @@ import urllib2
import totpcgi
import totpcgi.backends
import cgitb
cgitb.enable(display=0, logdir="/tmp")
if len(sys.argv) > 1:
# blindly assume it's the config file
config_file = sys.argv[1]