python/chcat: Don't fail on missing translation files
PATCH 1/1 python/chcat: Don't fail on missing translation files
Exception handling was not in line with other files, causing chcat to fail if translation files were not available
--- python/chcat/chcat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
python/chcat/chcat +1 -1
@@ -40,7 +40,7 @@ try: localedir="/usr/share/locale", **kwargs) _ = t.gettext -except ImportError: +except: try: import builtins builtins.__dict__['_'] = str
--
2.35.3
Quoted 22 lines · Johannes Segitz
Exception handling was not in line with other files, causing chcat to fail if translation files were not available
Signed-off-by Johannes Segitz <[email protected]>--- python/chcat/chcat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)python/chcat/chcat +1
-2@@ -40,7 +40,7 @@ try: localedir="/usr/share/locale", **kwargs) _ = t.gettext -except ImportError: +except: try: import builtins builtins.__dict__['_'] = str --
Quoted 1 line
2.35.3
I believe this was already fixed by https://lore.kernel.org/selinux/[email protected]/T/#m55d405c1504f7bc4ffff5f5ea9152b45fdf6848d (commit 344463076b2a91e1d2c7f5cc3835dc1a53a05e88)?
-Daniel
Quoted 2 lines · Daniel Burgener
I believe this was already fixed by https://lore.kernel.org/selinux/[email protected]/T/#m55d405c1504f7bc4ffff5f5ea9152b45fdf6848d
(commit344463076b2a91e1d2c7f5cc3835dc1a53a05e88)?
yes, looks like it. I sent this as a PR a few months ago and only came around to sent it correctly now. Please diregrad the patch then
Johannes
Signature · 5 lines
GPG Key EE16 6BCE AD56 E034 BFB3 3ADD 7BF7 29D5 E7C8 1FA0 Subkey fingerprint: 250F 43F5 F7CE 6F1E 9C59 4F95 BC27 DD9D 2CC4 FD66 SUSE Software Solutions Germany GmbH, Frankenstraße 146, 90461 Nürnberg, Germany Geschäftsführer: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman (HRB 36809, AG Nürnberg)