fixed local variable 'records' referenced before assignment bug
authorTony Mack <tmack@cs.princeton.edu>
Tue, 2 Jun 2009 19:58:22 +0000 (19:58 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Tue, 2 Jun 2009 19:58:22 +0000 (19:58 +0000)
geni/methods/list.py

index 81c5e08..ddc460f 100644 (file)
@@ -27,6 +27,7 @@ class list(Method):
     def call(self, cred, hrn):
         
         self.api.auth.check(cred, 'list')
+        records = []
         try:
             if not self.api.auth.hierarchy.auth_exists(hrn):
                 raise MissingAuthority(hrn)