Use `raise Timeline_Error`, not `assert`

Otherwise, doctest fails when run with `-O`
Raise ImportError, not Internal_Server_Error