diversion: replace spaces by underscores when looking up features
This commit is contained in:
parent
90ab457ebe
commit
20e20ce827
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue