[meld] Don't crash on Windows when accessing cdll.intl



commit 4ae51320ce4065d335ee5fc2a26f19c4c9ad8bae
Author: Bartosz DziewoƄski <matma rex gmail com>
Date:   Fri Jan 3 02:38:04 2014 +0100

    Don't crash on Windows when accessing cdll.intl
    
    Accessing cdll.intl sometimes fails on Windows for unknown reasons.
    Let's just continue, as this only affects translations, and these are
    non-essential (running in English is definitely better than not
    running at all).

 bin/meld |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/bin/meld b/bin/meld
index c2065fc..f584efb 100755
--- a/bin/meld
+++ b/bin/meld
@@ -101,6 +101,11 @@ except AttributeError as e:
 except locale.Error as e:
     print("Couldn't bind the translation domain. Some translations won't work.")
     print(e)
+except WindowsError as e:
+    # Accessing cdll.intl sometimes fails on Windows for unknown reasons.
+    # Let's just continue, as translations are non-essential.
+    print("Couldn't bind the translation domain. Some translations won't work.")
+    print(e)
 
 
 def check_requirements():


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