Catch AttributeError on captureWarnings usage.
Merge branch 'rbarlow-fix_warning_logging'