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
|
||||
try:
|
||||
self.count = int(count)
|
||||
except ValueError | TypeError:
|
||||
except (ValueError, TypeError):
|
||||
_log.warn('rule MouseClick action: count %s should be an integer', count)
|
||||
self.count = 1
|
||||
|
||||
|
|
Loading…
Reference in New Issue