rules: fix syntax in MouseClick
This commit is contained in:
parent
244d48d245
commit
a99a5a544e
|
@ -518,7 +518,7 @@ class MouseClick(Action):
|
||||||
count = args[1] if len(args) >= 2 else 1
|
count = args[1] if len(args) >= 2 else 1
|
||||||
try:
|
try:
|
||||||
self.count = int(count)
|
self.count = int(count)
|
||||||
except ValueError | TypeError:
|
except (ValueError, TypeError):
|
||||||
_log.warn('rule MouseClick action: count %s should be an integer', count)
|
_log.warn('rule MouseClick action: count %s should be an integer', count)
|
||||||
self.count = 1
|
self.count = 1
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue