~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/soyuz/scripts/queue.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-06-09 10:49:32 UTC
  • mfrom: (7675.1190.7 db-bug-793382)
  • Revision ID: launchpad@pqm.canonical.com-20110609104932-ctzgwbfn80x1c9ll
[r=henninge][bug=793382] Bring requestUpgrades back to constant query
 count.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
from zope.component import getUtility
25
25
 
26
26
from canonical.config import config
 
27
from lp.app.browser.tales import DurationFormatterAPI
27
28
from canonical.librarian.utils import filechunks
28
 
from lp.app.browser.tales import DurationFormatterAPI
29
29
from lp.app.errors import NotFoundError
30
30
from lp.services.propertycache import cachedproperty
31
31
from lp.soyuz.enums import PackageUploadStatus
120
120
        distroset = getUtility(IDistributionSet)
121
121
        try:
122
122
            self.distribution = distroset[self.distribution_name]
123
 
        except NotFoundError:
 
123
        except NotFoundError, info:
124
124
            self.distribution = distroset['ubuntu']
125
125
 
126
126
        if self.suite_name:
129
129
            try:
130
130
                self.distroseries, self.pocket = (
131
131
                    self.distribution.getDistroSeriesAndPocket(
132
 
                        self.suite_name))
133
 
            except NotFoundError:
 
132
                    self.suite_name))
 
133
            except NotFoundError, info:
134
134
                raise QueueActionError('Context not found: "%s/%s"'
135
135
                                       % (self.distribution.name,
136
136
                                          self.suite_name))
539
539
        # ("source" or "binary").
540
540
        try:
541
541
            override_stanza = self.terms[0]
542
 
        except IndexError:
 
542
        except IndexError, info:
543
543
            self.displayUsage('Missing override_stanza.')
544
544
            return
545
545