Browse Source

raise exceptions

pull/11/head
Brett Langdon 5 years ago
parent
commit
a0dd48f427
Signed by: brettlangdon GPG Key ID: A70042D88B95AA2B
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      sysaudit/_csysaudit.pyx

+ 2
- 2
sysaudit/_csysaudit.pyx View File

@ -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


Loading…
Cancel
Save