mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
update
This commit is contained in:
@@ -1093,7 +1093,12 @@ class plugins_api:
|
||||
if not package in sys.path:
|
||||
sys.path.append(package)
|
||||
eval_str = "__import__('" + script + "')." + func + '(' + args + ')'
|
||||
newRet = eval(eval_str)
|
||||
|
||||
try:
|
||||
newRet = eval(eval_str)
|
||||
except Exception as e:
|
||||
print(mw.getTracebackInfo())
|
||||
|
||||
if mw.isDebugMode():
|
||||
print('callback', eval_str)
|
||||
|
||||
|
||||
@@ -1621,8 +1621,8 @@ def get_user_list(args = {}):
|
||||
def remove_user(args = {}):
|
||||
return mc_instance.remove_user(args)
|
||||
|
||||
if __name__ == "__main__":
|
||||
print(mc_instance.get_process_list())
|
||||
# if __name__ == "__main__":
|
||||
# print(mc_instance.get_process_list())
|
||||
# print(mc_instance.get_network_list())
|
||||
# print(mc_instance.get_process_info({'pid':66647}))
|
||||
# for x in range(10):
|
||||
|
||||
Reference in New Issue
Block a user