The corresponding except clause should only be used for exceptions caused by audit module error or unavailability. Signed-off-by: Vit Mojzis <vmojzis@xxxxxxxxxx> --- python/semanage/seobject.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/semanage/seobject.py b/python/semanage/seobject.py index 29b4afe0..78ffb091 100644 --- a/python/semanage/seobject.py +++ b/python/semanage/seobject.py @@ -140,7 +140,7 @@ try: self.log_list = [] self.log_change_list = [] -except: +except OSError, ImportError: class logger: def __init__(self): -- 2.14.3 _______________________________________________ Selinux mailing list Selinux@xxxxxxxxxxxxx To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx. To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.