diff sat/core/sat_main.py @ 3649:4a89342476e9

core (sat_main): fix the "Could not initialize backend" error logging
author Goffi <goffi@goffi.org>
date Wed, 08 Sep 2021 11:16:29 +0200
parents 3c7a64d6f49f
children 760f3ff05092
line wrap: on
line diff
--- a/sat/core/sat_main.py	Wed Sep 08 11:16:21 2021 +0200
+++ b/sat/core/sat_main.py	Wed Sep 08 11:16:29 2021 +0200
@@ -218,11 +218,7 @@
             ui_contact_list.ContactList(self)
             ui_profile_manager.ProfileManager(self)
         except Exception as e:
-            log.error(
-                _("Could not initialize backend: {reason}").format(
-                    reason=str(e).decode("utf-8", "ignore")
-                )
-            )
+            log.error(f"Could not initialize backend: {e}")
             sys.exit(1)
         self._addBaseMenus()