Re: [PATCH] python/chcat: Don't fail on missing translation files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 9/12/2022 3:40 AM, Johannes Segitz wrote:
Exception handling was not in line with other files, causing chcat to
fail if translation files were not available

Signed-off-by: Johannes Segitz <jsegitz@xxxxxxx>
---
  python/chcat/chcat | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/chcat/chcat b/python/chcat/chcat
index e779fcc6..1b93e99b 100755
--- a/python/chcat/chcat
+++ b/python/chcat/chcat
@@ -40,7 +40,7 @@ try:
                      localedir="/usr/share/locale",
                      **kwargs)
      _ = t.gettext
-except ImportError:
+except:
      try:
          import builtins
          builtins.__dict__['_'] = str
--
2.35.3

I believe this was already fixed by https://lore.kernel.org/selinux/87tu83r2zk.fsf@xxxxxxxxxx/T/#m55d405c1504f7bc4ffff5f5ea9152b45fdf6848d (commit 344463076b2a91e1d2c7f5cc3835dc1a53a05e88)?

-Daniel



[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux