Adamw has submitted this change and it was merged.
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(-)
Approvals:
Adamw: Looks good to me, approved
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: merged
Gerrit-Change-Id: Ia124b4185df844086e0fe3fba88ef38e93a3aaef
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/tools
Gerrit-Branch: master
Gerrit-Owner: Mwalker <[email protected]>
Gerrit-Reviewer: Adamw <[email protected]>
Gerrit-Reviewer: Mwalker <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits