From 0d2ec6c2b084c21a30c1d21bbaa209133af64c6c Mon Sep 17 00:00:00 2001 From: Rico Schulte Date: Sun, 28 Jan 2007 14:15:34 +0000 Subject: [PATCH] disable debug :\ remove unused try/except --- webinterface/src/plugin.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/webinterface/src/plugin.py b/webinterface/src/plugin.py index d8088d5f..9152e3d7 100644 --- a/webinterface/src/plugin.py +++ b/webinterface/src/plugin.py @@ -28,7 +28,7 @@ sessions = [ ] use tail -f to view this log """ -DEBUG = True +DEBUG = False DEBUGFILE= "/tmp/twisted.log" from twisted.cred.portal import Portal @@ -167,13 +167,10 @@ class PasswordDatabase: return failure.Failure(error.UnauthorizedLogin()) def requestAvatarId(self, credentials): - try: - if check_passwd(credentials.username,credentials.password,self.passwordfile) is True: - return defer.maybeDeferred(credentials.checkPassword,credentials.password).addCallback(self._cbPasswordMatch, str(credentials.username)) - else: - return defer.fail(error.UnauthorizedLogin()) - except Exception,e: - print e + if check_passwd(credentials.username,credentials.password,self.passwordfile) is True: + return defer.maybeDeferred(credentials.checkPassword,credentials.password).addCallback(self._cbPasswordMatch, str(credentials.username)) + else: + return defer.fail(error.UnauthorizedLogin()) class IHTTPUser(Interface): pass -- 2.20.1