Selaa lähdekoodia

wxGUI: attempt to fix failure when loading broken addons

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@64499 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 10 vuotta sitten
vanhempi
commit
009a647b82
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      gui/wxpython/core/toolboxes.py

+ 1 - 1
gui/wxpython/core/toolboxes.py

@@ -539,7 +539,7 @@ def _loadMetadata(module):
     """
     try:
         task = gtask.parse_interface(module)
-    except ScriptError:
+    except (ScriptError, UnicodeDecodeError):
         return '', ''
 
     return task.get_description(full=True), \