diff --git a/data/model/legacy.py b/data/model/legacy.py index f9ab5ef1d..4c489667d 100644 --- a/data/model/legacy.py +++ b/data/model/legacy.py @@ -1805,7 +1805,6 @@ def delete_tag(namespace_name, repository_name, tag_name): Namespace.username == namespace_name, RepositoryTag.name == tag_name)) found = db_for_update(query).get() - except RepositoryTag.DoesNotExist: msg = ('Invalid repository tag \'%s\' on repository \'%s/%s\'' % (tag_name, namespace_name, repository_name)) diff --git a/static/js/graphing.js b/static/js/graphing.js index 4d2c82ba4..18bb09496 100644 --- a/static/js/graphing.js +++ b/static/js/graphing.js @@ -509,7 +509,7 @@ ImageHistoryTree.prototype.buildRoot_ = function() { /** - * Prunes images which are not referenced either directly or indireclty by any tag. + * Prunes images which are not referenced either directly or indirectly by any tag. */ ImageHistoryTree.prototype.pruneUnreferenced_ = function(node) { if (node.children) { diff --git a/test/test_gc.py b/test/test_gc.py index 4f4f6c95c..e538ff5bf 100644 --- a/test/test_gc.py +++ b/test/test_gc.py @@ -167,10 +167,8 @@ class TestGarbageColection(unittest.TestCase): """ Repository has multiple tags with shared images. Selectively deleting the tags, and verifying at each step. """ - repository = self.createRepository(latest=['i1', 'i2', 'i3'], - other=['i1', 'f1', 'f2'], - third=['t1', 't2', 't3'], - fourth=['i1', 'f1']) + repository = self.createRepository(latest=['i1', 'i2', 'i3'], other=['i1', 'f1', 'f2'], + third=['t1', 't2', 't3'], fourth=['i1', 'f1']) # Delete tag other. Should delete f2, since it is not shared. self.deleteTag(repository, 'other')