mirror of
https://github.com/hanzoai/python-sdk.git
synced 2026-10-23 20:23:00 +00:00
fix: bare except in autonomous_bug_solver example
This commit is contained in:
@@ -150,8 +150,8 @@ async def search_codebase(pattern: str, file_types: List[str] = None) -> List[Di
|
||||
"match": match.group(),
|
||||
"context": content.split('\n')[line_num-1]
|
||||
})
|
||||
except:
|
||||
pass
|
||||
except (OSError, UnicodeDecodeError):
|
||||
pass # Skip unreadable files
|
||||
|
||||
return results
|
||||
|
||||
|
||||
Reference in New Issue
Block a user