File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -529,8 +529,17 @@ async def load(
529529 requirements_path = requirements_path ,
530530 )
531531 except Exception as e :
532- logger .error (traceback .format_exc ())
532+ error_trace = traceback .format_exc ()
533+ logger .error (error_trace )
533534 logger .error (f"插件 { root_dir_name } 导入失败。原因:{ e !s} " )
535+ fail_rec += f"加载 { root_dir_name } 插件时出现问题,原因 { e !s} 。\n "
536+ self .failed_plugin_dict [root_dir_name ] = {
537+ "error" : str (e ),
538+ "traceback" : error_trace ,
539+ }
540+ if path in star_map :
541+ logger .info ("失败插件依旧在插件列表中" )
542+ star_map .pop (path )
534543 continue
535544
536545 # 检查 _conf_schema.json
Original file line number Diff line number Diff line change @@ -747,12 +747,13 @@ const showPluginInfo = (plugin) => {
747747const reloadPlugin = async (plugin_name ) => {
748748 try {
749749 const res = await axios .post (" /api/plugin/reload" , { name: plugin_name });
750+ await getExtensions ();
750751 if (res .data .status === " error" ) {
751752 toast (res .data .message , " error" );
752753 return ;
753754 }
754755 toast (tm (" messages.reloadSuccess" ), " success" );
755- getExtensions ();
756+ // getExtensions();
756757 } catch (err) {
757758 toast (err, " error" );
758759 }
You can’t perform that action at this time.
0 commit comments