equal
deleted
inserted
replaced
115 link_name_user = None |
115 link_name_user = None |
116 |
116 |
117 # try to fetch User entity corresponding to link_name if one exists |
117 # try to fetch User entity corresponding to link_name if one exists |
118 try: |
118 try: |
119 if link_name: |
119 if link_name: |
120 link_name_user = id_user.getUserFromLinkNameOrDie(link_name) |
120 link_name_user = id_user.getUserFromLinkNameOr404(link_name) |
121 except out_of_band.ErrorResponse, error: |
121 except out_of_band.ErrorResponse, error: |
122 # show custom 404 page when link name doesn't exist in Datastore |
122 # show custom 404 page when link name doesn't exist in Datastore |
123 return simple.errorResponse(request, error, template, context) |
123 return simple.errorResponse(request, error, template, context) |
124 |
124 |
125 # link_name_user will be None here if link name was already None... |
125 # link_name_user will be None here if link name was already None... |