Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
binary-husky committed Apr 21, 2024
1 parent a731a10 commit 9112dfc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions toolbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
from shared_utils.handle_upload import file_manifest_filter_type
from shared_utils.handle_upload import extract_archive
from typing import List
from crazy_functions.latex_fns.latex_models import LatexPaperFileGroup, LatexPaperSplit
pj = os.path.join
default_user_name = "default_user"

Expand Down Expand Up @@ -868,11 +867,11 @@ def __exit__(self, exc_type, exc_value, traceback):
if "HTTPS_PROXY" in os.environ:
os.environ.pop("HTTPS_PROXY")
return

class SafeUnpickler(pickle.Unpickler):
# 定义允许的安全类
safe_classes = {
'LatexPaperFileGroup': LatexPaperFileGroup ,
'LatexPaperFileGroup': LatexPaperFileGroup ,
'LatexPaperSplit' : LatexPaperSplit
# 在这里添加其他安全的类
}
Expand Down

0 comments on commit 9112dfc

Please sign in to comment.