Permalink
Browse files

Fix cleanup script for keys that are not found

  • Loading branch information...
1 parent a6103e5 commit e353abc6811000a29bf479f11346628987fb2ac1 @jterrace jterrace committed Jul 3, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 scripts/cleanup.py
View
@@ -60,7 +60,8 @@ def save_unused_keys(unused_keys):
try:
key_data = get_hash(unused_key)
except NotFoundError:
- key_data = ""
+ continue
+
size_ct += len(key_data['data'])
unused_key = unused_key.encode('ascii')
mimetype = key_data['mimetype'].encode('ascii')

0 comments on commit e353abc

Please sign in to comment.