Skip to content

Commit

Permalink
Merge pull request #2560 from InfinityPacer/main
Browse files Browse the repository at this point in the history
  • Loading branch information
jxxghp committed Jul 12, 2024
2 parents ad9e1a5 + e2acec3 commit 71260f0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,20 @@

from app.core.config import settings, global_vars
from app.core.module import ModuleManager

# SitesHelper涉及资源包拉取,提前引入并容错提示
try:
from app.helper.sites import SitesHelper
except ImportError as e:
error_message = f"错误: {str(e)}\n站点认证及索引相关资源导入失败,请尝试重建容器或手动拉取资源"
print(error_message, file=sys.stderr)
sys.exit(1)

from app.core.plugin import PluginManager
from app.db.init import init_db, update_db, init_super_user
from app.helper.thread import ThreadHelper
from app.helper.display import DisplayHelper
from app.helper.resource import ResourceHelper
from app.helper.sites import SitesHelper
from app.helper.message import MessageHelper
from app.scheduler import Scheduler
from app.command import Command, CommandChian
Expand Down

0 comments on commit 71260f0

Please sign in to comment.