session expired when retrieving metadata
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Fri, 5 Apr 2013 11:21:27 +0000 (13:21 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Fri, 5 Apr 2013 11:21:27 +0000 (13:21 +0200)
manifold/metadata.py

index c092dfd..99af3d0 100644 (file)
@@ -36,6 +36,7 @@ class MetaData:
         rows = rows_result.ok_value()
         if not rows:
             print "Failed to retrieve metadata",rows_result.error()
+            rows=[]
         self.hash_by_subject = dict ( [ (row['table'], row) for row in rows ] )
         # save for next time we use offline mode
         if debug: