Skip to content

Commit 5fd2181

Browse files
committed
🐛 Add a workaround for Textualize/textual#5742
1 parent 9150520 commit 5fd2181

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

ChangeLog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
commands. ([#40](https://github.com/davep/aging/pull/40))
99
- Added `--bindings` as a command line switch.
1010
([#40](https://github.com/davep/aging/pull/40))
11+
- Added a workaround for
12+
[textual#5742](https://github.com/Textualize/textual/issues/5742)
1113

1214
## v0.4.0
1315

requirements-dev.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ mdurl==0.1.2
5757
# via markdown-it-py
5858
msgpack==1.1.0
5959
# via textual-dev
60-
multidict==6.4.2
60+
multidict==6.4.3
6161
# via aiohttp
6262
# via yarl
6363
mypy==1.15.0
@@ -83,7 +83,7 @@ pyyaml==6.0.2
8383
rich==14.0.0
8484
# via textual
8585
# via textual-serve
86-
textual==3.0.1
86+
textual==3.1.0
8787
# via aging
8888
# via textual-dev
8989
# via textual-enhanced
@@ -96,7 +96,7 @@ textual-fspicker==0.4.1
9696
# via aging
9797
textual-serve==1.1.1
9898
# via textual-dev
99-
typing-extensions==4.13.1
99+
typing-extensions==4.13.2
100100
# via aging
101101
# via mypy
102102
# via ngdb

requirements.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ pyperclip==1.9.0
3232
# via aging
3333
rich==14.0.0
3434
# via textual
35-
textual==3.0.1
35+
textual==3.1.0
3636
# via aging
3737
# via textual-enhanced
3838
# via textual-fspicker
3939
textual-enhanced==0.11.0
4040
# via aging
4141
textual-fspicker==0.4.1
4242
# via aging
43-
typing-extensions==4.13.1
43+
typing-extensions==4.13.2
4444
# via aging
4545
# via ngdb
4646
# via textual

src/aging/aging.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
##############################################################################
88
# Textual imports.
9-
from textual.app import InvalidThemeError
9+
from textual.app import InvalidThemeError, ScreenStackError
1010

1111
##############################################################################
1212
# Textual enhanced imports.
@@ -67,7 +67,10 @@ def __init__(self, arguments: Namespace) -> None:
6767
self.theme = configuration.theme
6868
except InvalidThemeError:
6969
pass
70-
self.update_keymap(configuration.bindings)
70+
try:
71+
self.update_keymap(configuration.bindings)
72+
except ScreenStackError: # https://github.com/Textualize/textual/issues/5742
73+
pass
7174

7275
def watch_theme(self) -> None:
7376
"""Save the application's theme when it's changed."""

0 commit comments

Comments
 (0)