[meld] bin/meld: Don't unintentionally get our exception from the outer scope



commit 12800f92ab45efb2a3aae841a5e9a4577eb03f9b
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sat May 12 08:32:34 2018 +1000

    bin/meld: Don't unintentionally get our exception from the outer scope

 bin/meld | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/bin/meld b/bin/meld
index cc27bbef..b3620a7c 100755
--- a/bin/meld
+++ b/bin/meld
@@ -180,9 +180,9 @@ def check_requirements():
     gtksourceview_requirement = (3, 20, 0)
     pangocairo_requirement = (1, 34)
 
-    def missing_reqs(mod, ver, exception=None):
-        if isinstance(exception, ImportError):
-            show_error_and_exit(_("Cannot import: ") + mod + "\n" + str(e))
+    def missing_reqs(mod, ver, exc=None):
+        if isinstance(exc, ImportError):
+            show_error_and_exit(_("Cannot import: ") + mod + "\n" + str(exc))
         else:
             modver = mod + " " + ".".join(map(str, ver))
             show_error_and_exit(_("Meld requires %s or higher.") % modver)


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