From a0dd48f42726813a68b30b690ef16f0aeeb19a1e Mon Sep 17 00:00:00 2001 From: brettlangdon Date: Mon, 15 Feb 2021 21:59:38 -0500 Subject: [PATCH] raise exceptions --- sysaudit/_csysaudit.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sysaudit/_csysaudit.pyx b/sysaudit/_csysaudit.pyx index 71b7625..4786eb2 100644 --- a/sysaudit/_csysaudit.pyx +++ b/sysaudit/_csysaudit.pyx @@ -2,7 +2,7 @@ cdef list hooks = [] cdef int has_hooks = 0 -cdef void _audit(str event, tuple args): +cdef void _audit(str event, tuple args) except *: global hooks for hook in hooks: hook(event, args) @@ -16,7 +16,7 @@ def audit(event, *args): _audit(event, args) -cpdef void addaudithook(callback): +cpdef void addaudithook(callback) except *: global hooks global has_hooks