Put validation behind more abstraction.
[invirt/packages/invirt-web.git] / code / cache_acls.py
index 81827b0..b18eabc 100644 (file)
@@ -27,8 +27,11 @@ def expandName(name):
     if ':' not in name:
         if isUser(name):
             return [name]
-        name = 'system:'+name
-    return getafsgroups.getAfsGroupMembers(name, 'athena.mit.edu')
+        return []
+    try:
+        return getafsgroups.getAfsGroupMembers(name, 'athena.mit.edu')
+    except getafsgroups.AfsProcessError:
+        return []
 
 def accessList(m):
     people = set()