From eae5729e351e3bf4e94cbf245252fa5acd245fec Mon Sep 17 00:00:00 2001 From: midoks Date: Fri, 11 Nov 2022 13:04:35 +0800 Subject: [PATCH] up --- .gitignore | 2 +- class/core/mw.py | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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()