diversion: replace spaces by underscores when looking up features

This commit is contained in:
Peter F. Patel-Schneider 2025-02-03 19:57:55 -05:00
parent 90ab457ebe
commit 20e20ce827
1 changed files with 1 additions and 1 deletions

View File

@ -742,7 +742,7 @@ class MouseProcess(Condition):
class Feature(Condition):
def __init__(self, feature: str, warn: bool = True):
try:
self.feature = SupportedFeature[feature]
self.feature = SupportedFeature[feature.replace(" ", "_")]
except KeyError:
self.feature = None
if warn: