Skip to content

Commit

Permalink
Fixed an error warning in the mouse tracker on closing
Browse files Browse the repository at this point in the history
  • Loading branch information
Gemmstone committed Apr 7, 2024
1 parent 68a9957 commit c49d6eb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Core/ShortcutsManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,12 @@ def run(self):
position = pyautogui.position()
else:
position = (0, 0)
self.mouse_position.emit({
"x": position[0], "y": position[1]
})
try:
self.mouse_position.emit({
"x": position[0], "y": position[1]
})
except AttributeError:
pass

elapsed = time.time() - start_time
if elapsed < interval:
Expand Down

0 comments on commit c49d6eb

Please sign in to comment.