diff --git a/policycoreutils/audit2allow/audit2allow b/policycoreutils/audit2allow/audit2allow index 6bbab408..e23e418b 100644 --- a/policycoreutils/audit2allow/audit2allow +++ b/policycoreutils/audit2allow/audit2allow @@ -32,7 +32,10 @@ import sepolgen.module as module from sepolgen.sepolgeni18n import _ import selinux.audit2why as audit2why import locale -locale.setlocale(locale.LC_ALL, '') +try: + locale.setlocale(locale.LC_ALL, '') +except: + pass class AuditToPolicy: diff --git a/policycoreutils/audit2allow/audit2why b/policycoreutils/audit2allow/audit2why index 3909b972..b1489eda 100644 --- a/policycoreutils/audit2allow/audit2why +++ b/policycoreutils/audit2allow/audit2why @@ -32,7 +32,10 @@ import sepolgen.module as module from sepolgen.sepolgeni18n import _ import selinux.audit2why as audit2why import locale -locale.setlocale(locale.LC_ALL, '') +try: + locale.setlocale(locale.LC_ALL, '') +except: + pass class AuditToPolicy: