formatting fix in unpairing error dialog

This commit is contained in:
Daniel Pavel 2013-07-07 01:31:22 +02:00
parent 81765ee971
commit 0d89d1e6c8
2 changed files with 5 additions and 5 deletions

View File

@ -24,7 +24,7 @@ def _error_dialog(reason, object):
'and plugging it back in.' % object)
elif reason == 'unpair':
title = 'Unpairing failed'
text = ('Failed to unpair\n%s\nfrom %s.'
text = ('Failed to unpair %s from %s.\n'
'\n'
'The receiver returned an error, with no further details.'
% (object.name, object.receiver.name))

View File

@ -6,9 +6,9 @@ from __future__ import absolute_import, division, print_function, unicode_litera
from gi.repository import Gtk, Gdk
from logging import getLogger
_log = getLogger(__name__)
del getLogger
# from logging import getLogger
# _log = getLogger(__name__)
# del getLogger
#
#
@ -84,5 +84,5 @@ def unpair(window, device):
try:
del receiver[device_number]
except:
_log.exception("unpairing %s", device)
# _log.exception("unpairing %s", device)
error_dialog('unpair', device)