Fix a traceback when in debug mode
This commit is contained in:
parent
be5ccce421
commit
af11058129
1 changed files with 2 additions and 2 deletions
|
@ -156,7 +156,7 @@ class Tab(object):
|
||||||
log.debug("Invalid value for tab state: %s", value)
|
log.debug("Invalid value for tab state: %s", value)
|
||||||
elif STATE_PRIORITY[value] < STATE_PRIORITY[self._state] and \
|
elif STATE_PRIORITY[value] < STATE_PRIORITY[self._state] and \
|
||||||
value != 'current':
|
value != 'current':
|
||||||
log.debug("Did not set status because of lower priority, asked: %s, kept: %s", (value, self._state))
|
log.debug("Did not set status because of lower priority, asked: %s, kept: %s", value, self._state)
|
||||||
else:
|
else:
|
||||||
self._state = value
|
self._state = value
|
||||||
|
|
||||||
|
@ -1703,7 +1703,7 @@ class RosterInfoTab(Tab):
|
||||||
roster.remove_contact(jid)
|
roster.remove_contact(jid)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
import traceback
|
import traceback
|
||||||
log.debug(_('Traceback when removing %s from the roster:\n')+traceback.format_exc())
|
log.debug(_('Traceback when removing %s from the roster:\n' % jid)+traceback.format_exc())
|
||||||
|
|
||||||
def command_add(self, args):
|
def command_add(self, args):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue