diff --git a/src/plugins/plugin_misc_account.py b/src/plugins/plugin_misc_account.py index d89d2683..95fc3f16 100755 --- a/src/plugins/plugin_misc_account.py +++ b/src/plugins/plugin_misc_account.py @@ -90,6 +90,8 @@ Salut à Toi association https://www.salut-a-toi.org """) +DEFAULT_DOMAIN = u"example.net" + class MiscAccount(object): """Account plugin: create a SàT + XMPP account, used by Libervia""" @@ -279,7 +281,8 @@ class MiscAccount(object): domain = self.getConfig('new_account_domain') or self.getConfig('xmpp_domain', None) if not domain: - raise ValueError(_(u"xmpp_domain need to be set in sat.conf")) + log.warning(_(u'xmpp_domain needs to be set in sat.conf. Using "{default}" meanwhile').format(default=DEFAULT_DOMAIN)) + return DEFAULT_DOMAIN return domain def _getAccountDialogUI(self, profile):