Changeset 57262ce


Ignore:
Timestamp:
Mar 25, 2009, 11:46:28 PM (16 years ago)
Author:
Edward Z. Yang <edwardzyang@…>
Branches:
master, debian, mac, no-cups, web
Children:
64ee2c9
Parents:
edb8b23
git-author:
Edward Z. Yang <edwardzyang@…> (03/25/09 23:46:28)
git-committer:
Edward Z. Yang <edwardzyang@…> (03/25/09 23:46:28)
Message:

Add error case for scripts servers.
Signed-off-by: Edward Z. Yang <edwardzyang@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gutenbach-web/middleware.py

    redb8b23 r57262ce  
    3535    def __call__(self, environ, start_response):
    3636        if self.keytab:
    37             subprocess.call(["kinit", self.krbname, "-k", "-t", self.keytab])
     37            try:
     38                subprocess.call(["kinit", self.krbname, "-k", "-t", self.keytab])
     39            except OSError:
     40                subprocess.call(["/usr/kerberos/bin/kinit", self.krbname, "-k", "-t", self.keytab])
    3841        return self.app(environ, start_response)
    3942
Note: See TracChangeset for help on using the changeset viewer.