|
@@ -729,11 +729,12 @@ class GRASSStartup(wx.Frame):
|
|
|
"""Update list of locations"""
|
|
|
try:
|
|
|
self.listOfLocations = GetListOfLocations(dbase)
|
|
|
- except UnicodeEncodeError:
|
|
|
- GError(parent = self,
|
|
|
- message = _("Unable to set GRASS database. "
|
|
|
- "Check your locale settings."))
|
|
|
-
|
|
|
+ except (UnicodeEncodeError, UnicodeDecodeError) as e:
|
|
|
+ GError(parent=self,
|
|
|
+ message=_("Unicode error detected. "
|
|
|
+ "Check your locale settings. Details: {}").format(e),
|
|
|
+ showTraceback=False)
|
|
|
+
|
|
|
self.lblocations.Clear()
|
|
|
self.lblocations.InsertItems(self.listOfLocations, 0)
|
|
|
|