diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-02-15 17:32:53 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-02-15 17:32:53 -0300 |
commit | b79d9b0eeb936dd73b2724033f69189a851227e7 (patch) | |
tree | c50fa3cd86f86298ec87d38d0737735fc76b5429 /devel | |
parent | 20a85a7306aaa1c792acf3f2ca24ae192178a8b9 (diff) |
Don't fail on missing desc
Diffstat (limited to 'devel')
-rw-r--r-- | devel/management/commands/reporead.py | 5 |
1 files changed, 4 insertions, 1 deletions
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 |