From 0d89d1e6c89594bd7e753fc0a37169d2d1606848 Mon Sep 17 00:00:00 2001 From: Daniel Pavel Date: Sun, 7 Jul 2013 01:31:22 +0200 Subject: [PATCH] formatting fix in unpairing error dialog --- lib/solaar/ui/__init__.py | 2 +- lib/solaar/ui/action.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/solaar/ui/__init__.py b/lib/solaar/ui/__init__.py index bb12b8fe..9c2e1ae8 100644 --- a/lib/solaar/ui/__init__.py +++ b/lib/solaar/ui/__init__.py @@ -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)) diff --git a/lib/solaar/ui/action.py b/lib/solaar/ui/action.py index c8e7b562..30228c60 100644 --- a/lib/solaar/ui/action.py +++ b/lib/solaar/ui/action.py @@ -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)