app/soc/logic/accounts.py
changeset 543 280a1ac6bcc1
parent 512 aae25d2b4464
child 592 be98a2f5d8a2
--- a/app/soc/logic/accounts.py	Sat Nov 22 03:13:59 2008 +0000
+++ b/app/soc/logic/accounts.py	Sat Nov 22 07:57:00 2008 +0000
@@ -26,7 +26,7 @@
 from google.appengine.api import users
 
 from soc.logic import models
-from soc.logic import out_of_band
+from soc.views import out_of_band
 
 import soc.models.user
 import soc.logic.models.user
@@ -117,7 +117,7 @@
   """Like getUserFromLinkId but expects to find a user.
 
   Raises:
-    out_of_band.ErrorResponse if no User entity is found
+    out_of_band.Error if no User entity is found
   """
   user = models.user.logic.getForFields({'link_id': link_id},
                                         unique=True)
@@ -125,5 +125,5 @@
   if user:
     return user
 
-  raise out_of_band.ErrorResponse(
+  raise out_of_band.Error(
       'There is no user with a "link ID" of "%s".' % link_id, status=404)