Client now starts up cleanly, but no way to add accounts
This commit is contained in:
3
hrafn.py
3
hrafn.py
@ -72,7 +72,7 @@ class Hrafn():
|
||||
if not self.db.has_key('active_user'):
|
||||
try:
|
||||
self.db['active_user'] = self.accounts.keys()[0]
|
||||
except KeyError:
|
||||
except IndexError:
|
||||
self.db['active_user'] = None
|
||||
|
||||
|
||||
@ -149,6 +149,7 @@ class Hrafn():
|
||||
|
||||
|
||||
def update_account_label(self):
|
||||
if self.username:
|
||||
self.account_label.set_text(self.username + ': ')
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user