diff --git a/scripts/review-stats/review-stats.py b/scripts/review-stats/review-stats.py index 59af30e..c17608a 100755 --- a/scripts/review-stats/review-stats.py +++ b/scripts/review-stats/review-stats.py @@ -15,6 +15,7 @@ VERSION = "2.5" import bugzilla import datetime import glob +import logging import operator import os import string @@ -39,6 +40,9 @@ SCITECH = '505154' # These will show up in a query but aren't actual review tickets trackers = set([ACCEPT, BUNDLED, FEATURE, NEEDSPONSOR, GUIDELINES, SCITECH]) +# So the bugzilla module has some way to complain +logging.basicConfig() + def parse_commandline(): usage = "usage: %prog [options] -d -t " parser = OptionParser(usage) @@ -362,7 +366,7 @@ def report_new(bugs, bugdata, loader, tmpdir, subs): if __name__ == '__main__': options = parse_commandline() - bz = bugzilla.Bugzilla(url=options.url) + bz = bugzilla.Bugzilla(url=options.url, cookiefile=None) (bugs, bugdata) = run_query(bz) # Don't bother running this stuff until the query completes, since it fails