All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] python/chcat: Don't fail on missing translation files
@ 2022-09-12  7:40 Johannes Segitz
  2022-09-12 12:51 ` Daniel Burgener
  0 siblings, 1 reply; 3+ messages in thread
From: Johannes Segitz @ 2022-09-12  7:40 UTC (permalink / raw)
  To: selinux

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@suse.de>
---
 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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-09-12 13:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-12  7:40 [PATCH] python/chcat: Don't fail on missing translation files Johannes Segitz
2022-09-12 12:51 ` Daniel Burgener
2022-09-12 13:06   ` Johannes Segitz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.