Do not translate logging messages
issue10942 review351021002
This commit is contained in:
1 parent
7e28b3268b
commit
e49c70a2ae
5 files changed
+7
-7
No files matched your search
+1
-1
@@ -72,7 +72,7 @@ def _listen(connection):
|
||||
logger.info("Bus not supported")
|
||||
break
|
||||
logger.error(
|
||||
"An exception occured while connecting to the bus."
|
||||
"An exception occurred while connecting to the bus. "
|
||||
"Sleeping for %s seconds",
|
||||
wait, exc_info=error)
|
||||
time.sleep(min(wait, bus_timeout))
|
||||
|
||||
@@ -67,7 +67,7 @@ def update_completion(entry, record, field, model, domain=None):
|
||||
process_exception=False, callback=callback)
|
||||
except Exception:
|
||||
logger.warning(
|
||||
_("Unable to search for completion of %s") % model,
|
||||
"Unable to search for completion of %s", model,
|
||||
exc_info=True)
|
||||
return False
|
||||
search_text = entry.get_text()
|
||||
|
||||
@@ -59,7 +59,7 @@ class EmailEntry(Gtk.Entry):
|
||||
results = results()
|
||||
except (TrytonError, TrytonServerError):
|
||||
logger.warning(
|
||||
_("Unable to complete email entry"), exc_info=True)
|
||||
"Unable to complete email entry", exc_info=True)
|
||||
results = []
|
||||
if text != self.get_text():
|
||||
return False
|
||||
|
||||
@@ -837,8 +837,8 @@ class Screen(SignalEvent):
|
||||
selected_nodes = json.loads(selected_nodes)
|
||||
except RPCException:
|
||||
logger.warn(
|
||||
_('Unable to get view tree state for %s')
|
||||
% self.model_name)
|
||||
'Unable to get view tree state for %s',
|
||||
self.model_name)
|
||||
self.tree_states[parent][view.children_field] = (
|
||||
expanded_nodes, selected_nodes)
|
||||
if view.view_type == 'tree':
|
||||
|
||||
@@ -155,8 +155,8 @@ class Wizard(InfoBar):
|
||||
process_exception=False, callback=end_callback)
|
||||
except Exception:
|
||||
logger.warn(
|
||||
_("Unable to delete wizard %s") % self.session_id,
|
||||
exc_info=True)
|
||||
"Unable to delete session %s of wizard %s",
|
||||
self.session_id, self.action, exc_info=True)
|
||||
|
||||
def clean(self):
|
||||
for widget in self.widget.get_children():
|
||||
|
||||
Reference in new issue
Block a user