Re-raise LLM exceptions instead of raising new exception
Opened this issue · 4 comments
bruvduroiu commented
In Python, re-raising exceptions (raise
instead of raise Exception(e)
preserves the original stack trace, helping with debugging.
Change the LLM __call__
exception handling to re-raise errors happening during generation
simjak commented
@bruvduroiu so it should raise
instead of raise Exception(e)
?
bruvduroiu commented
@simjak yes, raise Exception(e)
raises a new exception, thus losing the stack of the original exception
alongadot commented
Hey, great project. I'm looking to contribute (and generally getting started with contributing to OS), is this issue still unassigned?
simjak commented
Hey, great project. I'm looking to contribute (and generally getting started with contributing to OS), is this issue still unassigned?
Yes, you could contribute if you can 🙏