typo

parent bc3dc5c6
......@@ -171,6 +171,8 @@ class Gui(object):
self.refresh_window()
def on_got_offline(self, presence):
from common import debug
debug('OFFLINE: %s\n' % presence)
jid = presence['from']
contact = self.roster.get_contact_by_jid(jid.bare)
if not contact:
......@@ -183,6 +185,8 @@ class Gui(object):
self.refresh_window()
def on_got_online(self, presence):
from common import debug
debug('ONLINE: %s\n' % presence)
jid = presence['from']
contact = self.roster.get_contact_by_jid(jid.bare)
if not contact:
......
......@@ -39,9 +39,9 @@ class MyStdErr(object):
"""
self.old_stderr = sys.stderr
sys.stderr = fd
def restaure(self):
def restore(self):
"""
Restaure the good ol' sys.stderr, because we need
Restore the good ol' sys.stderr, because we need
it in order to print the tracebacks
"""
sys.stderr.close()
......@@ -54,7 +54,7 @@ def exception_handler(type_, value, trace):
on any traceback: exit ncurses and print the traceback
then exit the program
"""
my_stderr.restaure()
my_stderr.restore()
try:
curses.endwin()
curses.echo()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment