diff --git a/.gitignore b/.gitignore index 1bce39313..df5b68be9 100644 --- a/.gitignore +++ b/.gitignore @@ -145,6 +145,7 @@ data/osname.pl data/only_netio_counters.pl data/system.db-journal data/hook_*.json +data/letsencrypt.json plugins/l2tp plugins/openlitespeed @@ -156,4 +157,3 @@ plugins/mail debug.out - diff --git a/class/core/mw.py b/class/core/mw.py index 2aa226863..8918eca23 100755 --- a/class/core/mw.py +++ b/class/core/mw.py @@ -58,6 +58,12 @@ def execShell(cmdstring, cwd=None, timeout=None, shell=True): return (t1, t2) +def getTracebackInfo(): + import traceback + errorMsg = traceback.format_exc() + return errorMsg + + def getRunDir(): return os.getcwd()