Mwalker has uploaded a new change for review. https://gerrit.wikimedia.org/r/104169
Change subject: Make this run on python2.6 ...................................................................... Make this run on python2.6 Change-Id: Ia124b4185df844086e0fe3fba88ef38e93a3aaef --- M FundraiserStatisticsGen/fundstatgen.py 1 file changed, 6 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/tools refs/changes/69/104169/1 diff --git a/FundraiserStatisticsGen/fundstatgen.py b/FundraiserStatisticsGen/fundstatgen.py index 3fd3e46..a80d1d3 100644 --- a/FundraiserStatisticsGen/fundstatgen.py +++ b/FundraiserStatisticsGen/fundstatgen.py @@ -259,7 +259,12 @@ if __name__ == "__main__": logging.getLogger().setLevel(logging.DEBUG) - logging.captureWarnings(True) + + try: + logging.captureWarnings(True) + except: + # Damn; python 2.6; just ignore it + pass # Log to console console = logging.StreamHandler() -- To view, visit https://gerrit.wikimedia.org/r/104169 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ia124b4185df844086e0fe3fba88ef38e93a3aaef Gerrit-PatchSet: 1 Gerrit-Project: wikimedia/fundraising/tools Gerrit-Branch: master Gerrit-Owner: Mwalker <mwal...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits