Commits

Lukas Linhart committed afa432c

Remove print & don't hide traceback

Comments (0)

Files changed (2)

djangohttpdigest/authentication.py

             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)

djangohttpdigest/decorators.py

 
                 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)