From 38cfe4f966a8d1bb5f0aa3c8393bd9382d29cc54 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Sun, 21 Feb 2010 19:26:20 +0000 Subject: [PATCH] Cope with non-digest 'id' attributes --- digest.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/digest.py b/digest.py index d2777ec..f597170 100644 --- a/digest.py +++ b/digest.py @@ -7,7 +7,9 @@ from logging import info stores = Stores() def digests(impl): - yield impl.getAttribute('id').split('=', 1) + id = impl.getAttribute('id') + if '=' in id: + yield id.split('=', 1) for x in xmltools.children(impl, 'manifest-digest'): for name, value in x.attributes.itemsNS(): if name[0] is None: -- 2.11.4.GIT