Let's not shadow a variable we are about to delete

This commit is contained in:
Jake Moshenko 2016-02-16 15:36:52 -05:00
parent 81a36ee3b8
commit d0b2030b4e

View file

@ -33,7 +33,7 @@ def remove_stale_manifests():
try: try:
for layer_mdata in parsed.layers: for layer_mdata in parsed.layers:
digest = layer_mdata.digest digest = layer_mdata.digest
found = model.blob.get_repo_blob_by_digest(parsed.namespace, parsed.repo_name, digest) model.blob.get_repo_blob_by_digest(parsed.namespace, parsed.repo_name, digest)
except model.BlobDoesNotExist: except model.BlobDoesNotExist:
logger.warning('Manifest missing layer: %s, deleting', digest) logger.warning('Manifest missing layer: %s, deleting', digest)