Debug s3.py for UnboundLocalError 

It raises UnboudLocalError for accessing e without naming your exception.
Merge pull request #20 from peterlada/patch-1

Debug s3.py for UnboundLocalError