Skip to content

Map timeout exceptions to something readable  #33

@ishaan-jaff

Description

@ishaan-jaff

cc @krrishdholakia since you were working on exceptions

It's really hard to detect if there was a timeout exception when i use litellm

I want something like this - just an easy way to detect if there was a timeout error.

    except Exception as e:
        print(f"in replicate llama, got error {e}")
        pass
        if e == "FunctionTimedOut":
            pass
        else:
            pytest.fail(f"Error occurred: {e}")

currently I need to go and understand how func_timeout works to catch the timeout error😭

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions