Skip to content

Commit 477ac44

Browse files
committed
🐛 Work around Textualize/textual#5742
1 parent 8c81460 commit 477ac44

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/peplum/app/peplum.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 = arguments.theme or 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)