add unit test for catchAndIgnore()

This commit is contained in:
Mike Kinney
2021-12-23 00:40:21 -08:00
parent 276b2762c8
commit cbd41efb19
3 changed files with 17 additions and 4 deletions

View File

@@ -102,7 +102,7 @@ def fixme(message):
def catchAndIgnore(reason, closure):
"""Call a closure but if it throws an excpetion print it and continue"""
"""Call a closure but if it throws an exception print it and continue"""
try:
closure()
except BaseException as ex: