[Twisted-Python] Re: [Twisted-commits] InMemoryUsernamePasswordDatabaseDontUse didn't raise the error properly when the password was wrong

Itamar Shtull-Trauring itamar at itamarst.org
Sun Sep 28 19:50:21 EDT 2003

On Sun, 28 Sep 2003 17:44:47 -0600
teratorn CVS <teratorn at wolfwood.twistedmatrix.com> wrote:

> -            return failure.Failure(error.UnauthorizedLogin())
> +            raise error.UnauthorizedLogin()

Uh. Why does one work and not the other? That looks like a bug in
Deferred to me. Aren't returned Failures supposed to be the same as
raised exceptions in callbacks?

Itamar Shtull-Trauring    http://itamarst.org/
Available for Python & Twisted consulting

More information about the Twisted-Python mailing list