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):
|
class Feature(Condition):
|
||||||
def __init__(self, feature: str, warn: bool = True):
|
def __init__(self, feature: str, warn: bool = True):
|
||||||
try:
|
try:
|
||||||
self.feature = SupportedFeature[feature]
|
self.feature = SupportedFeature[feature.replace(" ", "_")]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
self.feature = None
|
self.feature = None
|
||||||
if warn:
|
if warn:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue