core (sat_main): fix the "Could not initialize backend" error logging

This commit is contained in:
Goffi 2021-09-08 11:16:29 +02:00
commit f2988ea7be

View file

@ -218,11 +218,7 @@ class SAT(service.Service):
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()