mirror of
https://github.com/logos-storage/asynctest.git
synced 2026-01-02 13:03:07 +00:00
Raise Defect when unexpected exceptions occur
This commit is contained in:
parent
0bcd95b3de
commit
1ef3d36389
@ -11,7 +11,7 @@ template launderExceptions(body: typed) =
|
||||
except CatchableError as ex:
|
||||
raise ex
|
||||
except Exception as ex:
|
||||
raise newException(CatchableError, ex.msg, ex)
|
||||
raise newException(Defect, ex.msg, ex)
|
||||
|
||||
template suite*(name, body) =
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user