~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to scripts/reprocess-hwdb-submissions.py

  • Committer: Henning Eggers
  • Date: 2011-09-01 15:10:31 UTC
  • mto: This revision was merged to the branch mainline in revision 13871.
  • Revision ID: henning@canonical.com-20110901151031-ce6k0q17rw1mubhf
Fix options.warnings

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
            start = int(self.options.start)
65
65
        except ValueError:
66
66
            self.logger.error('Option --start must have an integer value.')
 
67
            return
 
68
        if start < 0:
 
69
            self.logger.error('--start must be a positive integer.')
 
70
            return
67
71
 
68
72
        reprocess_invalid_submissions(
69
 
            start, self.txn, self.logger, max_submissions, self.warnings)
 
73
            start, self.txn, self.logger,
 
74
            max_submissions, self.options.warnings)
70
75
 
71
76
if __name__ == '__main__':
72
77
    script = HWDBSubmissionProcessor(