From b79d9b0eeb936dd73b2724033f69189a851227e7 Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds Date: Wed, 15 Feb 2012 17:32:53 -0300 Subject: Don't fail on missing desc --- devel/management/commands/reporead.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/devel/management/commands/reporead.py b/devel/management/commands/reporead.py index c444538b..bb7d1005 100644 --- a/devel/management/commands/reporead.py +++ b/devel/management/commands/reporead.py @@ -197,7 +197,10 @@ def populate_pkg(dbpkg, repopkg, force=False, timestamp=None): dbpkg.pkgver = repopkg.ver dbpkg.pkgrel = repopkg.rel dbpkg.epoch = repopkg.epoch - dbpkg.pkgdesc = repopkg.desc + try: + dbpkg.pkgdesc = repopkg.desc + except AttributeError: + dbpkg.pkgdesc = "missing" dbpkg.url = repopkg.url dbpkg.filename = repopkg.filename dbpkg.compressed_size = repopkg.csize -- cgit v1.2.3-54-g00ecf