formatting fix in unpairing error dialog
This commit is contained in:
parent
81765ee971
commit
0d89d1e6c8
|
@ -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))
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue