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
2 changes: 1 addition & 1 deletion agentflow/agentflow/models/initializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def _get_optimal_workers(max_workers: int = None) -> tuple[int, str]:
try:
external_parallelism = int(slurm_ntasks)
detection_method = "SLURM"
except:
except Exception:
pass

# Calculate optimal workers
Expand Down
2 changes: 1 addition & 1 deletion test/calculate_score_unified.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def find_most_similar_candidate(query: str, candidates: list) -> str:
for opt in candidates:
if val in opt:
return opt
except:
except Exception:
pass
return candidates[0] if candidates else query # worst case fallback

Expand Down
2 changes: 1 addition & 1 deletion util/get_pub_ip.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def get_public_ip_with_fallback():
if response.status_code == 200 and valid_ip(ip):
print(f"✅ Successfully got public IP: {ip} from {service}.")
return ip
except:
except Exception:
continue
return "Failed to fetch public IP QAQ. "

Expand Down