def is_catchable(obj) -> bool:
    """
    Check if object is valid in a "except obj" statement.
    """

    if isinstance(obj, tuple):
        return all(isinstance(x, type) and issubclass(x, Exception) for x in obj)
    return isinstance(obj, type) and issubclass(obj, Exception)