[meld] meldapp: Add fallback for when the print_literal hack inevitably breaks
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] meldapp: Add fallback for when the print_literal hack inevitably breaks
- Date: Sat, 22 Feb 2014 03:17:09 +0000 (UTC)
commit 0592079e40c150580b4cc7a12ab13e9b206402e0
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sat Feb 22 13:10:43 2014 +1000
meldapp: Add fallback for when the print_literal hack inevitably breaks
meld/meldapp.py | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/meld/meldapp.py b/meld/meldapp.py
index 9b72d06..9ad2a68 100644
--- a/meld/meldapp.py
+++ b/meld/meldapp.py
@@ -176,9 +176,13 @@ class MeldApp(Gtk.Application):
def exit(self, *args):
self.should_exit = True
- # FIXME: This is... let's say... an unsupported method
- self.command_line.do_print_literal(
- self.command_line, self.output.getvalue())
+ # FIXME: This is... let's say... an unsupported method. Let's
+ # be circumspect about the likelihood of this working.
+ try:
+ self.command_line.do_print_literal(
+ self.command_line, self.output.getvalue())
+ except:
+ print(self.output.getvalue())
def print_usage(self, file=None):
if self.usage:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]