Skip to content

Commit 574dc63

Browse files
Add protection to default language detection on upgrade RIDE
1 parent 61011a9 commit 574dc63

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

README.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ See the https://github.com/robotframework/RIDE/blob/master/doc/releasenotes/ride
3636
**Version https://github.com/robotframework/RIDE/tree/release/1.7.4.2[1.7.4.2] was the last release supporting Python 2.7**
3737

3838

39-
**The current development version is based on 2.2.1.1, supports Python from 3.9 up to 3.14 (16th December 2025).**
39+
**The current development version is based on 2.2.1.1, supports Python from 3.9 up to 3.14 (08th December 2025).**
4040

4141
Currently, the unit tests are tested on Python 3.10, 3.11 and 3.13 (3.13 is the recommended version).
4242
We now have an experimental workflow on Fedora Linux 42, with wxPython 4.2.3 and Python 3.14.
@@ -46,7 +46,7 @@ Likewise, the current version of wxPython, is 4.2.3, but RIDE is known to work w
4646

4747
`pip install -U robotframework-ride`
4848

49-
(3.9 <= python <= 3.14) Install current development version (**2.2.2dev1**) with:
49+
(3.9 <= python <= 3.14) Install current development version (**2.2.2dev3**) with:
5050

5151
`pip install -U https://github.com/robotframework/RIDE/archive/develop.zip`
5252

src/robotide/application/application.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,10 @@ def change_locale(self, message):
354354
if message.keys[0] != "General":
355355
return
356356
initial_locale = self._locale.GetName()
357-
code = self._get_language_code()
357+
try:
358+
code = self._get_language_code()
359+
except AttributeError:
360+
code = wx.LANGUAGE_ENGLISH_WORLD
358361
del self._locale
359362
self._locale = wx.Locale(code)
360363
if not self._locale.IsOk():
@@ -384,7 +387,7 @@ def change_locale(self, message):
384387
except FileNotFoundError:
385388
pass
386389

387-
def _get_language_code(self) -> str:
390+
def _get_language_code(self) -> str|int:
388391
if languages:
389392
from ..preferences import Languages
390393
names = [n for n in Languages.names]

src/robotide/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
#
1616
# Automatically generated by `tasks.py`.
1717

18-
VERSION = 'v2.2.2dev2'
18+
VERSION = 'v2.2.2dev3'

0 commit comments

Comments
 (0)