diff options
author | Dan McGee <dan@archlinux.org> | 2015-04-15 12:34:20 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2015-04-15 12:34:20 -0500 |
commit | 7d4a6db69fe58aa9eb99cbc4f90556652455cf3a (patch) | |
tree | 36b2657a7ab5cc32e501f710310ab66e84b024b9 | |
parent | 0fd1bc9690ce7b1be70fcc2a3fc845549da7d660 (diff) |
Don't blow up if we can't fetch an SVN revision
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r-- | packages/management/commands/populate_signoffs.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/packages/management/commands/populate_signoffs.py b/packages/management/commands/populate_signoffs.py index a9c1c81c..17a05671 100644 --- a/packages/management/commands/populate_signoffs.py +++ b/packages/management/commands/populate_signoffs.py @@ -95,9 +95,12 @@ def add_signoff_comments(): continue logger.debug("getting SVN log for %s (%s)", group.pkgbase, group.repo) - log = cached_svn_log(group.pkgbase, group.repo) - logger.info("creating spec with SVN message for %s", group.pkgbase) - spec = create_specification(group.packages[0], log, finder) - spec.save() + try: + log = cached_svn_log(group.pkgbase, group.repo) + logger.info("creating spec with SVN message for %s", group.pkgbase) + spec = create_specification(group.packages[0], log, finder) + spec.save() + except: + logger.exception("error getting SVN log for %s", group.pkgbase) # vim: set ts=4 sw=4 et: |