Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Python 2.6 doesn't support logging.captureWarnings

  • Loading branch information...
commit 75add368ad8c3ff3b1e2fa75f690a4aba9be468d 1 parent 033409e
Alessandro Molina amol- authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 gearbox/main.py
5 gearbox/main.py
View
@@ -23,7 +23,10 @@ def __init__(self):
def configure_logging(self):
if self.options.debug:
warnings.simplefilter('default')
- logging.captureWarnings(True)
+ try:
+ logging.captureWarnings(True)
+ except AttributeError:
+ pass
root_logger = logging.getLogger('')
root_logger.setLevel(logging.INFO)
Please sign in to comment.
Something went wrong with that request. Please try again.