Skip to content
Snippets Groups Projects
Commit 594313ed authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

fix creation of new accounts

parent 853d06bc
No related branches found
No related tags found
No related merge requests found
......@@ -551,8 +551,12 @@ class Connection(ConnectionHandlers):
def connect_to_next_host(self, retry = False):
if len(self._hosts):
self._connection_types = gajim.config.get_per('accounts', self.name,
'connection_types').split()
# No config option exist when creating a new account
if self.name in gajim.config.get_per('accounts'):
self._connection_types = gajim.config.get_per('accounts', self.name,
'connection_types').split()
else:
self._connection_types = ['tls', 'ssl', 'plain']
host = self.select_next_host(self._hosts)
self._current_host = host
self._hosts.remove(host)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment