aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--export.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/export.py b/export.py
index bbea75e..41643a9 100644
--- a/export.py
+++ b/export.py
@@ -242,10 +242,13 @@ def export_srcpkgs(data, name, srcpkg_names):
# We could try to do something smarter, like look for the common
# prefix of the descriptions of all the binary packages.
descpkg = binpkg_names[0]
-
- desc = list(data.descs[
- data.descs['Package'] == descpkg]['Description-en'])[0]
- (short_desc, full_desc) = desc.split('\n', 1)
+ try:
+ desc = list(data.descs[
+ data.descs['Package'] == descpkg]['Description-en'])[0]
+ (short_desc, full_desc) = desc.split('\n', 1)
+ except:
+ full_desc = ''
+ short_desc = ''
full_desc = catechise(munge_description(full_desc))
yield Template('Entry', [