[Twisted-Python] Returning Failure when requestAvatarID to indicate a failed login is not working for me

2019-06-05 Thread Thomas Westfeld
Dear all, I am experiencing a problem with a custom credential checker for twisted cred based on an external server. @defer.inlineCallbacks def requestAvatarId(self, credentials): user = try: # Check password with external server, raises InvalidCredentials e

Re: [Twisted-Python] Returning Failure when requestAvatarID to indicate a failed login is not working for me

2019-06-05 Thread Glyph
> On Jun 5, 2019, at 4:52 AM, Thomas Westfeld > wrote: > > Dear all, Hi Thomas! > I am experiencing a problem with a custom credential checker for twisted cred > based on an external server. > > My problem is, that the Failure in the last line does not trigger the Errback > of the deferre