Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def _render_table_fallback(
try:
cell = table[(i, j)]
cell.set_facecolor('#D9E2F3' if i % 2 == 0 else 'white')
except:
except Exception:
pass

plt.savefig(str(output_path), dpi=150, bbox_inches='tight', facecolor='white')
Expand Down
2 changes: 1 addition & 1 deletion dataflow_agent/graphbuilder/message_history.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ def get_latest_checkpoint_id(self, thread_id: Optional[str] = None) -> Optional[
if checkpoint and hasattr(checkpoint, 'id'):
return checkpoint.id
return None
except:
except Exception:
return None

def get_message_history(
Expand Down
2 changes: 1 addition & 1 deletion dataflow_agent/promptstemplates/prompts_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -1086,7 +1086,7 @@ class InstantiateOperator:
[OUTPUT RULES]
Return only a JSON object with a single key:
{"code": "<complete runnable source code>"}
No comments, no extra keys, no extra prints except:
No comments, no extra keys, no extra prints except Exception:
- one line: [selected_input_key] <the_key>
- up to two lines: [preview_output] <result>
"""
Expand Down
8 changes: 4 additions & 4 deletions dataflow_agent/toolkits/pipetool/pipe_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ def group_import_for_full_params(op_names: List[str]) -> tuple:
# try:
# run_sig = inspect.signature(cls.run)
# run_has_storage = "storage" in run_sig.parameters
# except:
# except Exception:
# pass

# # -------- 渲染 __init__ 参数 --------
Expand Down Expand Up @@ -742,15 +742,15 @@ def render_operator_blocks_with_full_params(
init_sig = inspect.signature(cls.__init__)
init_param_names = {p.name for p in list(init_sig.parameters.values())[1:]
if p.kind not in (inspect.Parameter.VAR_POSITIONAL, inspect.Parameter.VAR_KEYWORD)}
except:
except Exception:
pass

try:
run_sig = inspect.signature(cls.run)
run_param_names = {p.name for p in list(run_sig.parameters.values())[1:]
if p.kind not in (inspect.Parameter.VAR_POSITIONAL, inspect.Parameter.VAR_KEYWORD)
and p.name != "storage"}
except:
except Exception:
pass

# 分配参数
Expand Down Expand Up @@ -778,7 +778,7 @@ def render_operator_blocks_with_full_params(
try:
run_sig = inspect.signature(cls.run)
run_has_storage = "storage" in run_sig.parameters
except:
except Exception:
pass

# -------- 渲染 __init__ 参数 --------
Expand Down
2 changes: 1 addition & 1 deletion dataflow_agent/workflow/wf_intelligent_qa.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ async def process_file(file_path: str) -> Dict[str, Any]:
try:
with open(file_path, "r", encoding="utf-8") as f:
raw_content = f.read()
except:
except Exception:
raw_content = "[Unsupported file type]"

# ==========================
Expand Down
2 changes: 1 addition & 1 deletion dataflow_agent/workflow/wf_kb_mindmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ async def process_file(file_path: str) -> Dict[str, Any]:
try:
with open(file_path, "r", encoding="utf-8") as f:
raw_content = f.read()
except:
except Exception:
raw_content = "[Unsupported file type]"

except Exception as e:
Expand Down
2 changes: 1 addition & 1 deletion dataflow_agent/workflow/wf_kb_podcast.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ async def process_file(file_path: str) -> Dict[str, Any]:
try:
with open(file_path, "r", encoding="utf-8") as f:
raw_content = f.read()
except:
except Exception:
raw_content = "[Unsupported file type]"

except Exception as e:
Expand Down
2 changes: 1 addition & 1 deletion dataflow_agent/workflow/wf_pdf2ppt_optimized.py
Original file line number Diff line number Diff line change
Expand Up @@ -1007,7 +1007,7 @@ def _get_iou(boxA, boxB):
with Image.open(img_path) as page_img:
crop = page_img.crop((x1, y1, x2, y2))
crop.save(ipath)
except:
except Exception:
ipath = None

if ipath and os.path.exists(ipath):
Expand Down
2 changes: 1 addition & 1 deletion fastapi_app/services/rebuttal_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -1878,7 +1878,7 @@ def _process_question_wrapper(idx: int) -> Tuple[int, QuestionState]:
# Save error state
try:
self._save_session_summary(session_id)
except:
except Exception:
pass
return (idx, session.questions[idx])
# Return empty state if session is gone
Expand Down