1 |
commit: aed2be3aa60cca385a746cc0f18b38354d21a789 |
2 |
Author: Christian Ruppert <idl0r <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 5 17:06:20 2011 +0000 |
4 |
Commit: Christian Ruppert <idl0r <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 5 17:06:20 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=aed2be3a |
7 |
|
8 |
Ignore empty tags |
9 |
|
10 |
--- |
11 |
src/imlate/imlate | 5 ++++- |
12 |
1 files changed, 4 insertions(+), 1 deletions(-) |
13 |
|
14 |
diff --git a/src/imlate/imlate b/src/imlate/imlate |
15 |
index 8ff385b..0be72e4 100755 |
16 |
--- a/src/imlate/imlate |
17 |
+++ b/src/imlate/imlate |
18 |
@@ -137,7 +137,10 @@ def _get_metadata(metadata, element, tag): |
19 |
values.append("no-herd") |
20 |
continue |
21 |
|
22 |
- values.append(node[0].childNodes[0].data) |
23 |
+ try: |
24 |
+ values.append(node[0].childNodes[0].data) |
25 |
+ except IndexError: |
26 |
+ pass |
27 |
except NotFoundErr: |
28 |
raise NotFoundErr("%s: Malformed input: missing 'flag' tag(s)" % (metadata)) |