~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to www/apps/server/__init__.py

  • Committer: wagrant
  • Date: 2008-09-20 07:02:28 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:1053
www.apps.server: Bail out early if the user doesn't exist. This
                 has frequently been crashing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
    # on the local machine where the file is stored.
48
48
    (user, path) = studpath.url_to_local(req.path)
49
49
 
50
 
    if user is None:
 
50
    try:
 
51
        interpret.get_uid(user)
 
52
    except KeyError:
 
53
        # There is no user.
51
54
        req.throw_error(req.HTTP_NOT_FOUND,
52
55
            "The path specified is invalid.")
53
56