"""
if isinstance(exception, Exception):
excType, excValue = type(exception), str(exception)
- elif isinstance(e, type):
- excType, excValue = e, ""
+ elif isinstance(exception, type):
+ excType, excValue = exception, ""
try:
yield
if __name__ == "__main__":
import doctest
- doctest.testmod()
\ No newline at end of file
+ doctest.testmod()