[meld] Convert error to a string before attempting to display



commit 01a460e9a0459c8a3aa343dbb8c75df4adb07058
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sun Aug 1 09:21:44 2010 +1000

    Convert error to a string before attempting to display

 bin/meld |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/bin/meld b/bin/meld
index 0967396..7becd9f 100755
--- a/bin/meld
+++ b/bin/meld
@@ -74,7 +74,7 @@ pygtkver = (2,8,0)
 
 def missing_reqs(mod, ver, exception=None):
     if isinstance(exception, ImportError):
-        print _("Cannot import: ") + mod + "\n" + e
+        print _("Cannot import: ") + mod + "\n" + str(e)
     else:
         modver = mod + " " + ".".join(map(str, ver))
         print _("Meld requires %s or higher.") % modver



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]