Skip to content

Commit 8aee463

Browse files
committed
Fix optional capability handling
1 parent 6408df6 commit 8aee463

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/_pyrepl/terminfo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ def get(self, cap: str) -> bytes | None:
831831

832832
if self._capabilities:
833833
# Fallbacks populated, use them
834-
return self._capabilities[cap]
834+
return self._capabilities.get(cap)
835835

836836
# Look up in standard capabilities first
837837
if cap in _STRING_CAPABILITY_NAMES:

0 commit comments

Comments
 (0)