修改telegram命令错误

This commit is contained in:
2026-07-11 02:51:28 +08:00
parent 0764a9a07f
commit 1cc84417f6
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -230,7 +230,7 @@ def cmd_analyze(symbol: str):
spec = importlib.util.spec_from_file_location(
"apollo_cycle", Path(__file__).parent / "apollo_cycle.py"
)
mod = importlib.util.load_from_spec(spec)
mod = importlib.util.module_from_spec(spec)
spec.loader.exec_module(mod)
result = mod.run_analysis(sym)
except Exception as e:
@@ -247,7 +247,7 @@ def cmd_scan():
spec = importlib.util.spec_from_file_location(
"apollo_cycle", Path(__file__).parent / "apollo_cycle.py"
)
mod = importlib.util.load_from_spec(spec)
mod = importlib.util.module_from_spec(spec)
spec.loader.exec_module(mod)
symbols = CFG["symbols"]
+1 -1
View File
@@ -230,7 +230,7 @@ def cmd_analyze(symbol: str):
"ares_cycle",
Path(__file__).parent / "ares_cycle.py"
)
mod = importlib.util.load_from_spec(spec)
mod = importlib.util.module_from_spec(spec)
spec.loader.exec_module(mod)
result = mod.run_analysis(symbol) # Returns signal dict or None
+1 -1
View File
@@ -213,7 +213,7 @@ def _run_analysis(sym):
spec = importlib.util.spec_from_file_location(
"athena_cycle", Path(__file__).parent / "athena_cycle.py"
)
mod = importlib.util.load_from_spec(spec)
mod = importlib.util.module_from_spec(spec)
spec.loader.exec_module(mod)
return mod.run_analysis(sym)
except Exception as e: