Skip to content
Merged
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 flocks/provider/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ def supports_embeddings(self) -> bool:
return False
# Check if it's the base implementation
return method != BaseProvider.embed
except:
except Exception:
return False

def get_embedding_models(self) -> List[str]:
Expand Down
6 changes: 3 additions & 3 deletions flocks/server/routes/find.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ async def find_text(
line=line_num,
content=content[:200], # Truncate
))
except:
except Exception:
continue

return results
Expand All @@ -89,7 +89,7 @@ async def find_text(
))

return results
except:
except Exception:
return []
except Exception as e:
log.warn("find.error", {"error": str(e)})
Expand Down Expand Up @@ -146,7 +146,7 @@ async def find_files(

files = result.stdout.strip().splitlines() if result.stdout else []
return files[:limit or 50]
except:
except Exception:
return []
except Exception as e:
log.warn("find.file.error", {"error": str(e)})
Expand Down
Loading
Loading