summary is used outside the try: except:, move it outside it.

This commit is contained in:
Tommi Virtanen 2011-07-01 09:33:06 -07:00
parent c1cd141b29
commit ce041a525c

View File

@ -135,8 +135,8 @@ def ls():
if j.startswith('.'):
continue
summary = {}
try:
summary = {}
with file('%s/%s/summary.yaml' % (args.archive_dir,j)) as f:
g = yaml.safe_load_all(f)
for new in g: