rules: fix syntax in MouseClick

This commit is contained in:
Peter F. Patel-Schneider 2020-11-27 10:10:55 -05:00
parent 244d48d245
commit a99a5a544e
1 changed files with 1 additions and 1 deletions

View File

@ -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