mirror of
https://github.com/meshtastic/python.git
synced 2026-05-19 05:46:14 -04:00
add unit test for catchAndIgnore()
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user