mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-05-23 16:35:59 +00:00
Apply suggestions from code review
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -83,6 +83,8 @@ def get_thread_id(runtime: Any | None) -> str | None:
|
||||
if thread_id:
|
||||
return thread_id
|
||||
except RuntimeError:
|
||||
# Expected when not running inside a LangGraph runnable context (e.g., unit tests).
|
||||
# In that case, thread_id cannot be resolved from thread-local config, so fall through.
|
||||
pass
|
||||
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user