Skip to content
Browse files

Remove print & don't hide traceback

  • Loading branch information...
1 parent 00b7e49 commit 797c67886e82dd5e60736f2779d906f21816e2ef @Almad committed Nov 12, 2009
Showing with 2 additions and 3 deletions.
  1. +2 −2 djangohttpdigest/authentication.py
  2. +0 −1 djangohttpdigest/decorators.py
View
4 djangohttpdigest/authentication.py
@@ -107,5 +107,5 @@ def get_a1(self, digestor):
self.a1 = md5("%s:%s:%s" % (username, self.realm, password)).hexdigest()
return self.a1
- except self.model.DoesNotExist:
- raise ValueError()
+ except self.model.DoesNotExist, e:
+ raise ValueError(e)
View
1 djangohttpdigest/decorators.py
@@ -44,7 +44,6 @@ def _wrapper(request, *args, **kwargs):
if parsed_header['realm'] == realm:
if password_field:
- print realm_field
authenticator = ClearTextModelAuthenticator(model=model, realm=realm, realm_field=realm_field, username_field=username_field, password_field=password_field)
else:
authenticator = ModelAuthenticator(model=model, realm=realm, realm_field=realm_field, username_field=username_field, secret_field=secret_field)

0 comments on commit 797c678

Please sign in to comment.
Something went wrong with that request. Please try again.